36 lines
876 B
JavaScript
36 lines
876 B
JavaScript
module.exports = {
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'jsx',
|
|
'json',
|
|
'vue'
|
|
],
|
|
transform: {
|
|
"\\.(gql|graphql)$": "<rootDir>/node_modules/jest-transform-graphql",
|
|
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
|
|
'^.+\\.vue$': '<rootDir>/node_modules/vue-jest',
|
|
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub'
|
|
},
|
|
modulePaths: [
|
|
"<rootDir>/src",
|
|
"<rootDir>/node_modules"
|
|
],
|
|
transformIgnorePatterns: [
|
|
'/node_modules/'
|
|
],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1'
|
|
},
|
|
snapshotSerializers: [
|
|
'<rootDir>/node_modules/jest-serializer-vue'
|
|
],
|
|
testMatch: [
|
|
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
|
|
],
|
|
testURL: 'http://localhost/',
|
|
watchPlugins: [
|
|
'jest-watch-typeahead/filename',
|
|
'jest-watch-typeahead/testname'
|
|
]
|
|
}
|