Skip to content

Commit 612ec79

Browse files
authored
More config files
1 parent 22e9b76 commit 612ec79

File tree

4 files changed

+20996
-0
lines changed

4 files changed

+20996
-0
lines changed

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

jest.config.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
moduleFileExtensions: [
3+
'ts',
4+
'tsx',
5+
'js',
6+
'jsx',
7+
'json',
8+
'vue'
9+
],
10+
transform: {
11+
'^.+\\.vue$': 'vue-jest',
12+
'.+\\.(css|styl|less|sass|scss|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+
'<rootDir>/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx))'
23+
]
24+
}

0 commit comments

Comments
 (0)