| 1 |
'use strict'; |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
module.exports = { |
| 7 |
moduleNameMapper: { |
| 8 |
'@wikimedia/codex-search': '@wikimedia/codex', |
| 9 |
'^./templates/(.*).mustache': '<rootDir>/includes/templates/$1.mustache' |
| 10 |
}, |
| 11 |
|
| 12 |
|
| 13 |
clearMocks: true, |
| 14 |
|
| 15 |
|
| 16 |
collectCoverage: true, |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
collectCoverageFrom: [ |
| 21 |
'resources/**/*.(js|vue)' |
| 22 |
], |
| 23 |
|
| 24 |
|
| 25 |
coverageDirectory: 'coverage', |
| 26 |
|
| 27 |
|
| 28 |
coveragePathIgnorePatterns: [ |
| 29 |
'/node_modules/' |
| 30 |
], |
| 31 |
|
| 32 |
|
| 33 |
coverageThreshold: { |
| 34 |
global: { |
| 35 |
branches: 35, |
| 36 |
functions: 45, |
| 37 |
lines: 48, |
| 38 |
statements: 48 |
| 39 |
} |
| 40 |
}, |
| 41 |
|
| 42 |
|
| 43 |
moduleFileExtensions: [ |
| 44 |
'js', |
| 45 |
'json', |
| 46 |
'vue' |
| 47 |
], |
| 48 |
|
| 49 |
modulePathIgnorePatterns: [ |
| 50 |
'<rootDir>/tests/integration-qunit/' |
| 51 |
], |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
setupFiles: [ |
| 56 |
'./jest.setup.js' |
| 57 |
], |
| 58 |
|
| 59 |
testEnvironment: 'jsdom', |
| 60 |
|
| 61 |
transform: { |
| 62 |
'^.+\\.mustache?$': 'mustache-jest', |
| 63 |
'.*\\.(vue)$': '<rootDir>/node_modules/@vue/vue3-jest' |
| 64 |
} |
| 65 |
}; |