Skip to content

Commit

Permalink
feat: move jest to root
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Jun 25, 2022
1 parent 8c8d5c2 commit 248bace
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 1,568 deletions.
15 changes: 12 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
preset: "ts-jest",
testEnvironment: "node",
watchPathIgnorePatterns: ["/node_modules/", "/dist/", "/.git/"],
moduleFileExtensions: ["ts", "tsx", "js", "json"],
moduleNameMapper: {
"^@mini-vue/(.*?)$": "<rootDir>/packages/$1/src",
},
rootDir: __dirname,
testMatch: ["<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)"],
testPathIgnorePatterns: ["/node_modules/"],
};
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"scripts": {
"dev": "rollup -c -w",
"build": "rollup -c",
"build:type": "tsc -p ./tsconfig.type.json",
"test": "jest --no-cache"
},
"author": "cuixiaorui",
Expand All @@ -18,8 +17,8 @@
"@rollup/plugin-node-resolve": "^8.1.0",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-typescript": "^8.2.5",
"@types/jest": "^26.0.0",
"jest": "^27.2.3",
"@types/jest": "^26.0.24",
"jest": "^27.5.1",
"rollup": "^2.17.1",
"rollup-plugin-sourcemaps": "^0.6.2",
"ts-jest": "^27.0.5",
Expand Down
6 changes: 0 additions & 6 deletions packages/reactivity/babel.config.js

This file was deleted.

9 changes: 2 additions & 7 deletions packages/reactivity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.15.0",
"@types/jest": "^27.0.0",
"babel-jest": "^27.0.6",
"jest": "^27.1.1"
"dependencies": {
"@mini-vue/shared": "workspace:^1.0.0"
}
}
Loading

0 comments on commit 248bace

Please sign in to comment.