forked from morphatic/v-stripe-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
35 lines (35 loc) · 851 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
module.exports = {
collectCoverageFrom: [
'src/**/*.{js,ts,tsx}',
'!**/*.d.ts',
],
globals: {
'ts-jest': {
babelConfig: true,
tsConfig: '<rootDir>/tsconfig.test.json',
diagnostics: false,
},
},
moduleFileExtensions: ['ts', 'js'],
moduleNameMapper: {
'\\.(css|sass|scss)$': 'identity-obj-proxy',
},
preset: 'ts-jest/presets/js-with-ts',
setupFilesAfterEnv: ['<rootDir>/test/index.ts'],
snapshotSerializers: [
'jest-serializer-html',
],
testEnvironment: 'jest-environment-jsdom-fourteen',
testEnvironmentOptions: {
omitJSDOMErrors: true,
},
transform: {
'\\.(sass|scss)$': 'jest-css-modules',
'.*\\.js$': 'babel-jest',
'.*\\.ts$': 'ts-jest',
},
transformIgnorePatterns: [
'node_modules/(?!vuetify)',
],
verbose: true, // set to false unless debugging
}