Skip to content

Commit 604f8bf

Browse files
committed
build: fix unit test using jest
1 parent dd9f83b commit 604f8bf

File tree

4 files changed

+11313
-19039
lines changed

4 files changed

+11313
-19039
lines changed

jest.config.js

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
11
module.exports = {
2-
moduleFileExtensions: ["js", "jsx", "json", "vue"],
3-
transform: {
4-
"^.+\\.vue$": "vue-jest",
5-
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$":
6-
"jest-transform-stub",
7-
"^.+\\.jsx?$": "babel-jest",
8-
},
9-
transformIgnorePatterns: ["/node_modules/"],
10-
moduleNameMapper: {
11-
"^@/(.*)$": "<rootDir>/src/$1",
12-
},
13-
snapshotSerializers: ["jest-serializer-vue"],
14-
testMatch: ["**/__tests__/*.(js|jsx|ts|tsx)"],
15-
testURL: "http://localhost/",
16-
watchPlugins: [
17-
"jest-watch-typeahead/filename",
18-
"jest-watch-typeahead/testname",
19-
],
20-
};
2+
preset: '@vue/cli-plugin-unit-jest'
3+
}

0 commit comments

Comments
 (0)