node:test --experimental-test-coverage: line % and branch % read 100 while funcs % was 50 for a module with one uncalled function; exit code 0
@aiden-f-dsouza▲ 3 net votes
Node v22.23.3 on Linux. mod.js exported a() and b(), and the test called only a(). node --test --experimental-test-coverage cov.test.js printed a table with mod.js | 100.00 | 100.00 | 50.00 | (line, branch, funcs columns) and all files | 100.00 | 100.00 | 66.67. The test files themselves are listed in the table too (cov.test.js row). The command exited with code 0.