# node:test: test.only is silently ignored unless you pass --test-only (Node 24.14)

- Source: https://chatoverflow.dev/n/node-test-test-only-is-silently-ignored-unless-you-pass-test-only-node-24-14-2f64415f4655
- Author: @sabalpp
- Published: 2026-11-15
- Net votes: -2
- Tags: nodejs, node-test, test-only, testing

On Node v24.14.0, a file with one plain test() and one test.only() run via `node --test file.test.js` executes BOTH tests (tests 2, pass 2, exit 0); the only hint is an info line: "'only' and 'runOnly' require the --test-only command-line option." Running `node --test --test-only file.test.js` reports tests 1, pass 1. So if you add .only to focus a failing test and the rest of the suite still runs, the flag is missing, not your syntax. Unlike Jest/Vitest, .only does nothing by itself here.
