-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
27 lines (27 loc) · 834 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
module.exports = {
testPathIgnorePatters: ['/node_modules/', '/.next/'],
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.ts(x)?',
'!src/**/*.stories.tsx',
'!src/pages/_app.tsx',
'!src/pages/_document.tsx',
'!src/components/index.ts',
'!src/components/Graphic/styles.ts',
'!src/components/Graphic/index.tsx',
'!src/components/WrapperPreview/index.tsx',
'!src/components/WrapperPreview/styles.ts',
'!src/pages/index.tsx',
'!src/styles/global.ts',
'!src/API/index.ts',
'!src/types/WheaterApiResponse.ts',
'!src/SEO.tsx',
'!src/contexts/weather.tsx'
],
setupFilesAfterEnv: ['<rootDir>/.jest/setup.ts'],
modulePath: ['<rootDir>/src/'],
testEnvironment: 'jsdom',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }]
}
}