44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
module.exports = {
|
|
testEnvironment: 'jsdom',
|
|
testMatch: [
|
|
'<rootDir>/test/spec/**/*.{spec,test}.{js,jsx,ts,tsx}'
|
|
],
|
|
transform: {
|
|
'^.+\\.js$': './config/babelJestTransform.cjs',
|
|
'^.+\\.svelte$': ['svelte-jester', {
|
|
preprocess: './config/svelte.config.cjs',
|
|
compilerOptions: {
|
|
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: 96,
|
|
branches: 94,
|
|
functions: 100,
|
|
lines: 100
|
|
}
|
|
}
|
|
}
|