blob: 929f6571771aa0b9709dba7f44aee719f8dc6372 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
const moduleNameMapper = {
'^~(/.*)$': '<rootDir>/content/frontend$1',
};
module.exports = {
testMatch: ['<rootDir>/spec/frontend/**/**/*_spec.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameMapper,
cacheDirectory: '<rootDir>/tmp/cache/jest',
restoreMocks: true,
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest',
'^.+\\.svg$': '@vue/vue2-jest',
},
transformIgnorePatterns: ['node_modules/(?!(@gitlab/(ui|svgs)|bootstrap-vue)/)'],
};
|