Skip to content

Commit 7fd3443

Browse files
elevatebartyyx990803
authored andcommitted
ci: make matcher more precise (vuejs#2185)
After adding the testMatch parameter, jest is now picking up files as test suites that it should not: example: `cli-plugin-unit-mocha/generator/template/tests/unit/HelloWorld.spec.js` This commit makes jest match only files in `__tests__`
1 parent d14d4e6 commit 7fd3443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"<rootDir>/scripts/testSetup.js"
3030
],
3131
"testMatch": [
32-
"**/*.spec.js"
32+
"**/__tests__/**/*.spec.js"
3333
]
3434
},
3535
"lint-staged": {

0 commit comments

Comments
 (0)