-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
36 lines (36 loc) · 1.41 KB
/
jest.config.js
File metadata and controls
36 lines (36 loc) · 1.41 KB
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
31
32
33
34
35
36
module.exports = {
testEnvironment: 'jsdom',
testPathIgnorePatterns: [
'/node_modules/',
'/tests/playwright/' // Ignore Playwright tests
],
collectCoverageFrom: [
'js/**/*.js',
// Exclude ES-Module files (use 'import' statements - not testable with CommonJS/Jest)
'!js/validation.js',
'!js/eventhandlers/buttons.js',
'!js/eventhandlers/formgroups/author.js',
'!js/eventhandlers/formgroups/authorInstitution.js',
'!js/eventhandlers/formgroups/contributor-organisation.js',
'!js/eventhandlers/formgroups/contributor-person.js',
'!js/eventhandlers/formgroups/fundingreference.js',
'!js/eventhandlers/formgroups/ggms-datasources.js',
'!js/eventhandlers/formgroups/relatedwork.js',
'!js/eventhandlers/formgroups/resourceinformation-title.js',
'!js/eventhandlers/formgroups/stc.js',
// Exclude jQuery-only files wrapped in $(document).ready() without exports
'!js/map.js',
'!js/thesauri.js',
'!js/originatingLaboratories.js',
// Exclude GGMS files (feature-specific, wrapped in document.ready)
'!js/eventhandlers/formgroups/ggms-definition.js',
'!js/eventhandlers/formgroups/ggms-modeltypes.js',
'!js/eventhandlers/formgroups/ggms-properties.js',
'!js/eventhandlers/formgroups/feedback.js'
],
coverageProvider: 'v8',
coverageReporters: ['json', 'lcov', 'text', 'clover', 'json-summary'],
transform: {
'^.+\\.js$': 'babel-jest'
}
};