forked from canalplus/rx-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
40 lines (39 loc) · 964 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-env node */
module.exports = {
// to uncomment to display logs.
// verbose: false,
roots: ["<rootDir>/src"],
preset: "ts-jest",
testEnvironment: "jsdom",
testMatch: ["**/?(*.)+(spec|test).[jt]s?(x)"],
collectCoverageFrom: [
"src/**/*.ts",
"!src/**/index.ts",
"!**/__tests__/**",
],
globals: {
__DEV__: true,
"ts-jest": {
tsconfig: {
target: "es2017",
lib: ["es2017", "dom"],
forceConsistentCasingInFileNames: true,
skipLibCheck: false,
noImplicitAny: true,
strict: true,
strictNullChecks: true,
strictPropertyInitialization: true,
noUnusedParameters: true,
noUnusedLocals: true,
types: ["rxjs", "node", "jest"],
module: "es2015",
moduleResolution: "node",
esModuleInterop: true,
typeRoots: [
"./src/typings",
"./node_modules/@types",
],
},
},
},
};