Files
portfolio2023/node_modules/pino-pretty/coverage-map.js
T
2023-11-24 22:35:41 +01:00

10 lines
294 B
JavaScript

'use strict'
module.exports = testFile => {
// Ignore coverage on files that do not have a direct corollary.
if (testFile.startsWith('test/')) return false
// Indicate the matching name, sans '.test.js', should be checked for coverage.
return testFile.replace(/\.test\.js$/, '.js')
}