Jestjs Jest的测试匹配不会选择我的测试文件
嘿,我无法让testMatch获取我的测试文件。这是我的配置:Jestjs Jest的测试匹配不会选择我的测试文件,jestjs,puppeteer,Jestjs,Puppeteer,嘿,我无法让testMatch获取我的测试文件。这是我的配置: module.exports = { preset: 'jest-puppeteer', testMatch: [ '**/tests/**/?(*.)+spec.js' ] }; 我的目录布局: - Automation - jest.config.js - tests - single-property - index.spec.
module.exports = {
preset: 'jest-puppeteer',
testMatch: [
'**/tests/**/?(*.)+spec.js'
]
};
我的目录布局:
- Automation
- jest.config.js
- tests
- single-property
- index.spec.js
输出:
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In C:\Users\<user_name>\WebstormProjects\Automation
4 files checked.
testMatch: **/tests/**/?(*.)+spec.js - 0 matches
testPathIgnorePatterns: \\node_modules\\ - 4 matches
testRegex: - 0 matches
Pattern: - 0 matches
试着这样做: “***/tests/***.spec.js”