github remix-run/remix test@0.6.0
test v0.6.0

3 hours ago

Minor Changes

  • BREAKING CHANGE: Removed executable remix-test.config.ts and remix-test.config.js discovery, along with the config path option from runRemixTest(). The programmatic @remix-run/test/cli API now accepts structured invocation options only. For CLI usage, move static test settings under remix.json#test; the main Remix CLI owns JSONC loading, path resolution, validation, and precedence before invoking the test runner (see #11628).

  • BREAKING CHANGE: Removed the standalone remix-test executable. Use remix test for command-line test runs. runRemixTest() from @remix-run/test/cli now accepts typed runner options such as type, glob, and concurrency instead of an argv array, and it no longer reads process.argv or handles CLI help (see #11623). The getRemixTestHelpText() export was removed along with CLI help handling; remix test -h prints the equivalent help text. @remix-run/test/cli now exports remixTestPools (the supported pool values), and coverage.enabled accepts 'inherit' to defer coverage enablement to the config file while still refining other coverage settings.

    - remix-test --type server --concurrency 1
    + remix test --type server --concurrency 1
     import { runRemixTest } from '@remix-run/test/cli'
    
     let exitCode = await runRemixTest({
    -  argv: ['--type', 'server', '--concurrency', '1'],
       cwd: process.cwd(),
    +  type: ['server'],
    +  concurrency: 1,
     })
  • Added a --only CLI flag and only config option to focus tests by matching suite names or full test names without editing source files to add .only modifiers.

  • Added a --quiet/-q CLI flag to omit skipped tests from reporter output.

Patch Changes

  • remix test now defaults NODE_ENV to test when it is not already set, so app modules loaded by test files can reliably select test-only resources such as in-memory databases. An explicitly set NODE_ENV is preserved (see #11608).

  • Fixed .only filtering so focused tests and suites apply across the entire test module instead of only within the nearest describe block. When describe.only and it.only are both present, the runner now executes the union of focused suites and focused tests.

Don't miss a new remix release

NewReleases is sending notifications on new releases.