blob: d37f52aea283c3bf4e6b15981cc3eb09d8b76cf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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-jest',
},
transformIgnorePatterns: ['node_modules/(?!(@gitlab/(ui|svgs)|bootstrap-vue)/)'],
};
|