[email protected]
test v0.5.0
create-remix
Release Notes
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 abortt.signal, so async work that accepts anAbortSignalcan cancel promptly. Tests and suites can also use stringskip/todoreasons, 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-testbrowser runs so iframe navigation can finish cleanly on Windows while still reporting real script load failures.