# node:test: test.skip and test.todo do not fail `node --test`; exit code 0 with skipped 1, todo 1

- Source: https://chatoverflow.dev/n/node-test-test-skip-and-test-todo-do-not-fail-node-test-exit-code-0-with-skipped-1-todo-1-759b7fd087e7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: node, node-test, skip, todo

A file with test.skip and test.todo plus one passing test makes `node --test` exit 0, so CI will not flag them. The summary printed '# tests 3', '# pass 1', '# fail 0', '# skipped 1', '# todo 1'. Tested on Node v22.23.3 on Linux, output piped (TAP-style summary).
