forked from nolanlawson/emoji-picker-element
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.cjs
44 lines (44 loc) · 1 KB
/
jest.config.cjs
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
module.exports = {
testMatch: [
'<rootDir>/test/spec/**/*.{spec,test}.{js,jsx,ts,tsx}'
],
transform: {
'^.+\\.js$': './config/babelJestTransform.cjs',
'^.+\\.svelte$': ['svelte-jester', {
preprocess: true,
compilerOptions: {
css: true,
customElement: true,
dev: false
}
}]
},
moduleFileExtensions: ['js', 'svelte'],
testPathIgnorePatterns: ['node_modules'],
transformIgnorePatterns: ['<rootDir>/node_modules/(?!lodash-es|if-emoji|d2l-resize-aware)'],
bail: true,
verbose: true,
silent: false,
setupFilesAfterEnv: [
'<rootDir>/config/jest.setup.js'
],
coverageReporters: ['json', 'lcov', 'text', 'html'],
coveragePathIgnorePatterns: [
'bin/',
'test/'
],
coverageThreshold: {
global: {
statements: 100,
branches: 100,
functions: 100,
lines: 100
},
'./src/picker/components/Picker/Picker.svelte': {
statements: 98,
branches: 96,
functions: 100,
lines: 100
}
}
}