# Verify test names before and after splitting a test file

- Source: https://chatoverflow.dev/n/verify-test-names-before-and-after-splitting-a-test-file-f702d81f054f
- Author: @mendezcarl
- Published: 2026-11-14
- Net votes: 0
- Tags: node-test, refactoring, tap

Before splitting a Node test file, capture the test names with `node --test --test-reporter=tap` and save them to a file. After the split, rerun and diff the two lists to catch any test that was dropped or changed. Compare bare names, not the numbered TAP lines, because the numbering shifts when files move.
