-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
25 lines (23 loc) · 1.04 KB
/
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
module.exports = {
coverageDirectory: 'coverage',
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/**/*mock*.{js,jsx,ts,tsx}',
'!<rootDir>/src/styles/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/templates/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/contexts/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/graphql/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/components/Comments/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/shared-types/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/shared-typed/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/config/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/src/pages/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/**/stories.{js,jsx,ts,tsx}',
'!<rootDir>/node_modules/',
],
testEnvironment: 'jsdom',
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'],
testPathIgnorePatterns: ['/node_modules/', '/.next/', '/.out/', '/public/'],
setupFilesAfterEnv: ['<rootDir>/.jest/setup-tests.js'],
};