-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (25 loc) · 770 Bytes
/
jest.config.js
File metadata and controls
26 lines (25 loc) · 770 Bytes
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
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
module.exports = {
clearMocks: true,
collectCoverage: false,
coverageDirectory: 'coverage',
coverageProvider: 'v8',
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['/node_modules/', '/.next/'],
collectCoverageFrom: [
'src/**/*.ts(x)?',
'!src/**/*.stories.tsx',
'!src/components/Board/Board.mock.ts',
'!src/constants/initial-board.ts',
'!src/pages/*.tsx',
'!src/pages/**/*.tsx',
'!src/styles/*',
'!src/types/*',
'!src/logic/useOnDragEnd/useOnDragEnd.ts' // we don't test the drag and drop
],
setupFilesAfterEnv: ['<rootDir>/.jest/setup.ts'],
moduleDirectories: ['node_modules', 'src']
};