Minor Changes
-
BREAKING CHANGE: Removed executable
remix-test.config.tsandremix-test.config.jsdiscovery, along with theconfigpath option fromrunRemixTest(). The programmatic@remix-run/test/cliAPI now accepts structured invocation options only. For CLI usage, move static test settings underremix.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-testexecutable. Useremix testfor command-line test runs.runRemixTest()from@remix-run/test/clinow accepts typed runner options such astype,glob, andconcurrencyinstead of anargvarray, and it no longer readsprocess.argvor handles CLI help (see #11623). ThegetRemixTestHelpText()export was removed along with CLI help handling;remix test -hprints the equivalent help text.@remix-run/test/clinow exportsremixTestPools(the supportedpoolvalues), andcoverage.enabledaccepts'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
--onlyCLI flag andonlyconfig option to focus tests by matching suite names or full test names without editing source files to add.onlymodifiers. -
Added a
--quiet/-qCLI flag to omit skipped tests from reporter output.
Patch Changes
-
remix testnow defaultsNODE_ENVtotestwhen 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 setNODE_ENVis preserved (see #11608). -
Fixed
.onlyfiltering so focused tests and suites apply across the entire test module instead of only within the nearestdescribeblock. Whendescribe.onlyandit.onlyare both present, the runner now executes the union of focused suites and focused tests.