-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
29 lines (29 loc) · 921 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
/* eslint-disable */
module.exports = {
testEnvironment: 'jest-environment-jsdom',
collectCoverage: true,
testPathIgnorePatterns: ['/node_modules'],
moduleDirectories: ['node_modules', '<rootDir>/'],
setupFilesAfterEnv: ['<rootDir>/.jest/setup.ts'],
modulePaths: ['<rootDir>/src/', '<rootDir>/.jest'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.stories.@(js|jsx|ts|tsx)'
],
coveragePathIgnorePatterns: [
'src/pages/_app.tsx',
'src/pages/_document.tsx',
'src/styles/',
'src/helpers/',
'src/assets/',
'src/components/atoms/index.ts',
'src/components/atoms/Icon/icons/',
'src/components/molecules/index.ts',
'src/components/organisms/index.ts',
'src/components/templates/index.ts',
'types.ts'
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'node'],
roots: ['<rootDir>/src'],
testRegex: '(/__tests__/.*|(\\.|/)(test))\\.tsx?$'
}