Skip to content

Commit aaa7a69

Browse files
authored
Update jest config to pick test files in node_modules (#5)
1 parent 6dccc71 commit aaa7a69

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.nyc_output
3+
.vscode/
34
coverage/
45
dist
56
node_modules/

jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module.exports = {
22
collectCoverage: false,
33
testEnvironment: "node",
4-
roots: ["src"]
4+
roots: ["src"],
5+
haste: {
6+
"providesModuleNodeModules": [".*"]
7+
}
58
};

src/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ const run = () => {
1616
const options = {
1717
roots: ["__checks__"],
1818
verbose: true,
19-
// silent: true,
20-
// showConfig: true,
21-
// noStackTrace: true,
22-
// useStderr: true,
23-
// json:true,
19+
testPathIgnorePatterns: []
2420
};
2521
jest.runCLI(options, [__dirname], () => {});
2622
};

0 commit comments

Comments
 (0)