Skip to content

Commit f5d933f

Browse files
committed
chore: fix tests
1 parent 6f31250 commit f5d933f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ module.exports = {
1515
"<rootDir>/packages/axios/__tests__/setupTest.js",
1616
"<rootDir>/packages/cookie/__tests__/setupTest.js",
1717
],
18+
moduleNameMapper:
19+
process.env.VUE === "2"
20+
? {}
21+
: {
22+
"^vue$": "@vue/runtime-core",
23+
},
1824
coverageDirectory: "coverage",
1925
coverageReporters: ["html", "lcov", "text"],
2026
collectCoverageFrom: ["src/**/*.ts", "packages/*/src/**/*.ts"],

0 commit comments

Comments
 (0)