Skip to content

Commit 8dcab9d

Browse files
committed
adding condition for e2e tests in jest.config.js
1 parent 47603ea commit 8dcab9d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

jest.config.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ module.exports = {
77

88
collectCoverage: true,
99
collectCoverageFrom: [
10-
"src/**/*.{js,jsx}",
11-
"src/tests/**/*.{js,jsx}"
10+
"src/**/*.{js,jsx}",
11+
"!src/**/*.test.{js,jsx}",
12+
"!src/tests/**/*.{js,jsx}"
1213
],
13-
coverageReporters: ['text', 'lcov'],
14+
coverageReporters: ['text', 'lcov', 'json', 'html'],
1415
coverageDirectory: "coverage",
16+
17+
testPathIgnorePatterns: [
18+
"/node_modules/",
19+
"/e2e/"
20+
],
1521
};

0 commit comments

Comments
 (0)