是否可以告诉 jest 从测试覆盖率报告中排除特定的文件?我不是在寻找.skip
功能
最佳答案
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx}",
"!src/file.ext" // <-- use the negation operator to exclude files or paths
]
}
关于javascript - 从测试覆盖范围中排除单个文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62841030/