Skip to content

test v0.5.0

Choose a tag to compare

@github-actions github-actions released this 05 Jun 18:28
· 13 commits to main since this release
8bace0a

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.