forked from bloom-housing/ui-seeds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
40 lines (38 loc) · 895 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*eslint no-undef: "error"*/
/*eslint-env node*/
process.env.TZ = "UTC"
module.exports = {
testRegex: ["/*.test.tsx$", "/*.test.ts$"],
collectCoverageFrom: [
"**/*.tsx",
"!**/*.stories.tsx",
"<rootDir>/ui-components/src/helpers/*.ts",
],
coverageReporters: ["lcov", "text"],
coverageDirectory: "test-coverage",
coverageThreshold: {
global: {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
},
preset: "ts-jest",
globals: {
"ts-jest": {
tsConfig: "tsconfig.json",
},
},
rootDir: "..",
roots: ["<rootDir>/ui-components"],
transform: {
"^.+\\.[t|j]sx?$": "ts-jest",
},
setupFiles: ["dotenv/config"],
setupFilesAfterEnv: ["<rootDir>/ui-components/.jest/setup-tests.js"],
moduleNameMapper: {
"\\.(scss|css|less)$": "identity-obj-proxy",
},
testPathIgnorePatterns: ["storyshots.d.ts"],
}