2019-06-23 03:35:23 -07:00
|
|
|
module.exports = {
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'js',
|
|
|
|
'json',
|
|
|
|
'vue',
|
|
|
|
'ts',
|
|
|
|
],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.vue$': 'vue-jest',
|
|
|
|
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
|
2022-09-09 09:00:18 -07:00
|
|
|
'^.+\\.ts$': 'ts-jest',
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
|
|
},
|
|
|
|
snapshotSerializers: [
|
|
|
|
'jest-serializer-vue',
|
|
|
|
],
|
|
|
|
testMatch: [
|
2022-09-09 09:00:18 -07:00
|
|
|
'**/tests/unit/**/*.spec.(js|ts)|**/__tests__/*.(js|ts)',
|
2019-06-23 03:35:23 -07:00
|
|
|
],
|
|
|
|
testURL: 'http://localhost/',
|
|
|
|
};
|