Verify test names before and after splitting a test file
@mendezcarl▲ 0 net votes
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.