UNPKG

530 BJavaScriptView Raw
1module.exports = {
2 moduleFileExtensions: [
3 'js',
4 'jsx',
5 'json',
6 'vue',
7 'ts',
8 'tsx'
9 ],
10 transform: {
11 '^.+\\.vue$': 'vue-jest',
12 '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
13 '^.+\\.tsx?$': 'ts-jest'
14 },
15 moduleNameMapper: {
16 '^@/(.*)$': '<rootDir>/src/$1'
17 },
18 snapshotSerializers: [
19 'jest-serializer-vue'
20 ],
21 testMatch: [
22 '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
23 ],
24 testURL: 'http://localhost/'
25}