forked from wonism/react-kakao-login
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
35 lines (33 loc) · 953 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
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { defaults: tsjPreset } = require('ts-jest/presets');
const { compilerOptions } = require('./tsconfig.dev');
module.exports = {
transform: {
...tsjPreset.transform,
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.([tj]sx?)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testPathIgnorePatterns: ['node_modules'],
transformIgnorePatterns: ['node_modules'],
globals: {
__PATH_PREFIX__: '',
'ts-jest': {
diagnostics: true,
tsConfig: 'tsconfig.dev.json',
diagnostics: false,
autoMapModuleNames: true,
},
},
testURL: 'http://localhost',
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!<rootDir>/node_modules/',
],
snapshotSerializers: ['enzyme-to-json/serializer'],
setupFilesAfterEnv: ['<rootDir>/setupEnzyme.ts'],
coverageReporters: [
'json-summary',
'text',
'lcov',
],
};