forked from pikax/vue-composable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
25 lines (24 loc) · 830 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const pkg = require("./package.json");
module.exports = {
preset: "ts-jest",
globals: {
__DEV__: true,
__SSR__: true,
__VERSION__: pkg.version,
__VUE_2__: process.env.VUE === "2",
__COMMIT__: "none"
},
setupFiles: [
"<rootDir>/__tests__/setupTest.js",
"<rootDir>/packages/vue-composable/__tests__/setupTest.js",
"<rootDir>/packages/axios/__tests__/setupTest.js"
],
coverageDirectory: "coverage",
coverageReporters: ["html", "lcov", "text"],
collectCoverageFrom: ["src/**/*.ts", "packages/*/src/**/*.ts"],
watchPathIgnorePatterns: ["/node_modules/"],
moduleFileExtensions: ["ts", "tsx", "js", "json"],
rootDir: __dirname,
testMatch: ["<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)"]
// testMatch: ["<rootDir>/packages/vue-composable/__tests__/**/*spec.[jt]s?(x)"]
};