-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
51 lines (51 loc) · 1008 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
41
42
43
44
45
46
47
48
49
50
51
export default {
rootDir: './',
// 10s - tests are interactive and have to wait for animations & rendering
slowTestThreshold: 10,
transform: {
'^.+\\.svelte$': 'svelte-jester',
'^.+\\.js$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(vanillajs-datepicker)/)',
],
moduleFileExtensions: ['js', 'svelte'],
extensionsToTreatAsEsm: ['.svelte', '.ts'],
testEnvironment: 'jsdom',
setupFilesAfterEnv: [
'@testing-library/jest-dom'
],
coveragePathIgnorePatterns: [
'coverage',
'tests/helpers',
'index.js',
'icons.js',
],
collectCoverageFrom: [
'src/**/*.{js,svelte}',
'!src/**/index.js',
'!src/icons.js'
],
coverageDirectory: 'coverage',
coverageReporters: [
'json',
'lcov',
'text',
'clover',
'html'
],
// coverageThreshold: {
// global: {
// branches: 70,
// functions: 75,
// lines: 80,
// statements: 80
// },
// './src/input/': {
// branches: 80,
// functions: 85,
// lines: 90,
// statements: 90
// }
// }
};