Skip to content

Commit dd3e05a

Browse files
committed
Updated Jest config to include index e2e test
1 parent 83fb108 commit dd3e05a

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
@@ -1,14 +1,17 @@
11
module.exports = {
22
preset: "ts-jest",
33
testEnvironment: "node",
4-
roots: ["lib"],
54
collectCoverageFrom: [
65
"index.ts",
76
"lib/**/*.ts",
87
"!lib/**/*.spec.ts",
98
"!<rootDir>/node_modules/",
109
"!<rootDir>/path/to/dir/"
1110
],
11+
testPathIgnorePatterns: [
12+
"/node_modules/",
13+
"/dist/"
14+
],
1215
testMatch: process.env.E2E_TEST ?
1316
[ "**/__tests__/?(e2e)/**/*.[jt]s?(x)", "**/?(*.)?(e2e.)+(spec|test).[jt]s?(x)" ] :
1417
[ "**/__tests__/!(e2e)/**/*.[jt]s?(x)", "**/!(*.e2e.*)+(spec|test).[jt]s?(x)" ]

0 commit comments

Comments
 (0)