-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathjest.config.js
91 lines (90 loc) · 2.56 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = {
// preset: "ts-jest/presets/js-with-ts",
moduleFileExtensions: ["ts", "js", "tsx", "jsx"],
transform: {
"^.+\\.(js|jsx|ts|tsx)$": ["ts-jest", {
tsconfig: "test/tsconfig.json",
}]
},
transformIgnorePatterns: [
"node_modules/(?!(@dcl/(ecs-math|quests-client))/)"
],
modulePathIgnorePatterns: [
"packages/@dcl/inspector"
],
coverageDirectory: "coverage",
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
"packages/@dcl/ecs/src/systems/crdt/index.ts": {
// This should be deleted on another PR. Need to release this asap.
branches: 67,
functions: 100,
lines: 79,
statements: 77,
},
"packages/@dcl/sdk": {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
"packages/@dcl/sdk-commands/src/commands/deploy": {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
"packages/@dcl/sdk-commands/src/commands/export-static": {
branches: 80,
},
"packages/@dcl/sdk-commands/src/commands/start": {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
"packages/@dcl/sdk-commands/src/components/exit-signal.ts": {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
"packages/@dcl/sdk-commands/src/logic/catalyst-requests.ts": {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
}
},
collectCoverageFrom: [
"packages/@dcl/*/src/**"
],
coveragePathIgnorePatterns: [
"scripts",
"test",
"(.)\\.(js)$",
"packages/@dcl/inspector",
"packages/@dcl/playground-assets",
"packages/@dcl/ecs/src/components/generated/pb",
"packages/@dcl/ecs/src/components/generated/AvatarBase.gen.ts",
// TODO: this are auto-generated from the proto but not exported to the sdk. Remove when we create this components
"packages/@dcl/ecs/src/components/generated/AvatarEmoteCommand.gen.ts",
"packages/@dcl/ecs/src/components/generated/AvatarEquippedData.gen.ts",
"packages/@dcl/ecs/src/components/generated/PlayerIdentityData.gen.ts",
"packages/@dcl/ecs/src/composite/proto/gen",
"packages/@dcl/ecs/src/components/generated/index.gen.ts",
"packages/@dcl/sdk/src/internal",
"packages/@dcl/sdk/src/testing",
"packages/@dcl/sdk/src/network-transport",
"packages/@dcl/sdk/src/ethereum-provider"
],
verbose: true,
testMatch: ["**/*.spec.(ts|tsx)"],
testEnvironment: "node",
setupFilesAfterEnv: ['./test/ecs/setup.ts']
}