Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit 8d442d3

Browse files
committed
Fix jest test match
1 parent 2918805 commit 8d442d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ module.exports = {
2525
},
2626

2727
// The glob patterns Jest uses to detect test files
28-
testMatch: ["**/test/**/?(*.)+(spec|test).js?(x)"],
28+
testMatch: [
29+
"<rootDir>/test/?(*.)+(spec|test).js?(x)",
30+
"<rootDir>/test/*/?(*.)+(spec|test).js?(x)"
31+
],
2932

3033
transform: {
3134
".js$": "babel-jest"

0 commit comments

Comments
 (0)