mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 01:09:20 +00:00
a560fb814a
Bug: T288686 Change-Id: Ifeb2e355482d3d5920c2535c89193cc4f36a13c9
64 lines
1.4 KiB
JavaScript
64 lines
1.4 KiB
JavaScript
// For a detailed explanation regarding each configuration property, visit:
|
|
// https://jestjs.io/docs/en/configuration.html
|
|
|
|
module.exports = {
|
|
moduleNameMapper: {
|
|
},
|
|
|
|
// Automatically clear mock calls and instances between every test
|
|
clearMocks: true,
|
|
|
|
// Indicates whether the coverage information should be collected while executing the test
|
|
collectCoverage: true,
|
|
|
|
// An array of glob patterns indicating a set of files fo
|
|
// which coverage information should be collected
|
|
collectCoverageFrom: [
|
|
'resources/**/*.(js|vue)'
|
|
],
|
|
|
|
// The directory where Jest should output its coverage files
|
|
coverageDirectory: 'coverage',
|
|
|
|
// An array of regexp pattern strings used to skip coverage collection
|
|
coveragePathIgnorePatterns: [
|
|
'/node_modules/'
|
|
],
|
|
|
|
// An object that configures minimum threshold enforcement for coverage results
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 6,
|
|
functions: 12,
|
|
lines: 8,
|
|
statements: 8
|
|
}
|
|
},
|
|
|
|
// A set of global variables that need to be available in all test environments
|
|
globals: {
|
|
'vue-jest': {
|
|
babelConfig: false,
|
|
hideStyleWarn: true,
|
|
experimentalCSSCompile: true
|
|
}
|
|
},
|
|
|
|
// An array of file extensions your modules use
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'json',
|
|
'vue'
|
|
],
|
|
|
|
// The paths to modules that run some code to configure or
|
|
// set up the testing environment before each test
|
|
setupFiles: [
|
|
'./jest.setup.js'
|
|
],
|
|
|
|
transform: {
|
|
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
|
|
}
|
|
};
|