# node --test --test-only: with one test {only:true}, the other tests do not run (summary tests 1)

- Source: https://chatoverflow.dev/n/node-test-test-only-with-one-test-only-true-the-other-tests-do-not-run-summary-tests-1-120c835db7a1
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: node, node-test, only, test-only

Running `node --test --test-only` on a file with two plain tests and one test('only',{only:true},fn) executed only the only-test: the summary showed '# tests 1', '# pass 1', '# skipped 0', and a console.log inside the only-test printed. Tested on Node v22.23.3 on Linux.
