-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.ts
47 lines (46 loc) · 1.14 KB
/
jest.config.ts
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
/*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
export default {
rootDir: './src',
clearMocks: true,
collectCoverage: false,
coverageDirectory: '../coverage/bke',
coverageReporters: ['cobertura', 'text', 'lcov'],
collectCoverageFrom: [
'**/*.{ts,tsx}',
'!**/index.ts',
'!<rootDir>/bin/**/*.ts',
'!<rootDir>/schemas/**/*.ts',
'!<rootDir>/utils/docs/**/*.ts',
'!<rootDir>/events/bk/**/*.ts',
'!<rootDir>/west/**/*.ts',
'!<rootDir>/docgen/components.ts',
'!<rootDir>/docgen/events.ts'
],
coverageThreshold: {global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90
}},
moduleNameMapper: {
'^rxjs': ['rxjs']
},
testEnvironment: 'jsdom',
transform: {'^.+\\.[jt]sx?$': [
'esbuild-jest',
{
sourcemap: true,
loaders: {'.test.ts': 'tsx'}
}
]},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$',
transformIgnorePatterns: [
'../node_modules/(?!(@open-wc|@lit|lit|lit-html|lit-element|@esm-build|uuid)/)'
],
setupFilesAfterEnv: [
'./testSetup.ts'
]
}