forked from micro-zoe/micro-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
executable file
·61 lines (60 loc) · 1.38 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
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
coverageReporters: [
'json',
'text',
'lcov',
'clover',
'html'
],
moduleFileExtensions: [
'js',
'json',
'jsx',
'ts',
'tsx'
],
transformIgnorePatterns: [
'/node_modules/',
],
testPathIgnorePatterns: [
'/dev/',
'/scripts/',
],
coveragePathIgnorePatterns: [
'/scripts/',
'/__tests__/',
],
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest'
},
rootDir: __dirname,
testMatch: [
// '<rootDir>/src/__tests__/**/*.test.[jt]s?(x)'
'<rootDir>/src/__tests__/main.test.ts',
'<rootDir>/src/__tests__/create_app.test.ts',
'<rootDir>/src/__tests__/micro_app_element.test.ts',
'<rootDir>/src/__tests__/micro_app.test.ts',
'<rootDir>/src/__tests__/unit/utils.test.ts',
'<rootDir>/src/__tests__/interact/index.test.ts',
'<rootDir>/src/__tests__/source/scoped_css.test.ts',
],
globals: {
__DEV__: true,
__TEST__: true,
'ts-jest': {
tsconfig: {
target: 'ES2017',
noUnusedLocals: true,
strictNullChecks: true,
noUnusedParameters: true,
experimentalDecorators: true,
allowSyntheticDefaultImports: true,
}
}
}
}