Skip to content

Commit 3669438

Browse files
committed
fix: Update Jest config to find test files in root directory
- Set rootDir to parent directory (..) so Jest looks in root - Update testMatch and collectCoverageFrom paths - Fixes 'No tests found' error in CI workflows
1 parent 4329296 commit 3669438

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

scripts/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,20 @@
2727
},
2828
"jest": {
2929
"testEnvironment": "node",
30+
"rootDir": "..",
3031
"testMatch": [
3132
"**/*.test.js"
3233
],
3334
"collectCoverageFrom": [
34-
"../phantom.js"
35+
"phantom.js"
3536
],
3637
"coveragePathIgnorePatterns": [
37-
"/node_modules/"
38+
"/node_modules/",
39+
"/scripts/"
3840
],
3941
"reporters": [
4042
"default",
41-
"<rootDir>/../test-summary-reporter.js"
43+
"<rootDir>/test-summary-reporter.js"
4244
]
4345
}
4446
}

0 commit comments

Comments
 (0)