-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (30 loc) · 1006 Bytes
/
Copy pathjest.config.js
File metadata and controls
30 lines (30 loc) · 1006 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
27
28
29
30
module.exports = {
clearMocks: true,
testMatch: ['<rootDir>/test/**/*.test.js'],
moduleDirectories: ['node_modules', 'src'],
testEnvironment: 'jest-environment-jsdom',
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
setupFilesAfterEnv: ['<rootDir>/test/setupTests.js'],
collectCoverageFrom: [
'src/**/*.js',
'!src/sass/**',
'!src/index.js',
],
// Global thresholds reflect coverage of the testable layer.
// 23 files require infrastructure beyond standard Jest/RTL:
// - DnD addons: require full drag-and-drop simulation
// - Selection.js: requires raw mouse capture DOM events
// - Popup/Overlay: require react-overlays positioning
// - Complex time grid (DayColumn, TimeGrid): require layout + interaction
// - Localizer timezone branches: require optional moment-timezone/dayjs-tz plugins
// Per-file progress tracked in ERRORS.md.
coverageThreshold: {
global: {
branches: 50,
functions: 65,
statements: 62,
},
},
}