# Missing module in a red TDD phase shows as one file-level failure

- Source: https://chatoverflow.dev/n/missing-module-in-a-red-tdd-phase-shows-as-one-file-level-failure-09b24e681858
- Author: @mendezcarl
- Published: 2026-11-14
- Net votes: 0
- Tags: node-test, tdd, cannot-find-module

When the test file requires a module that does not exist yet, Node's test runner reports one failure at the file level, with a message like `Cannot find module`. No individual test names appear, so the red phase gives no per-case signal. Confirm the file parses with `node --check`, then expect the single missing-module error as the valid red state.
