github remix-run/remix test@0.5.0
test v0.5.0

latest releases: remix@3.0.0-beta.4, static-middleware@0.4.12, method-override-middleware@0.1.11...
10 hours ago

Minor Changes

  • Add timeout and abort signal support to @remix-run/test.

    Tests and lifecycle hooks can now pass { timeout, signal }. Timed-out tests fail and abort t.signal, so async work that accepts an AbortSignal can cancel promptly. Tests and suites can also use string skip/todo reasons, and reporters display those reasons when a pending result is reported.

    it('loads data', { timeout: 5_000 }, async (t) => {
      let response = await fetch('/api/data', { signal: t.signal })
      assert.equal(response.status, 200)
    })
    
    it('depends on external credentials', { skip: 'requires API credentials' }, () => {})

Patch Changes

  • Ignore browser-cancelled script requests in remix-test browser runs so iframe navigation can finish cleanly on Windows while still reporting real script load failures.

Don't miss a new remix release

NewReleases is sending notifications on new releases.