Skip to content

Commit 1ae9f46

Browse files
feat: move jest to rootdir
1 parent d24bbc9 commit 1ae9f46

File tree

3 files changed

+807
-1043
lines changed

3 files changed

+807
-1043
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "vite",
77
"build": "vite build",
88
"cz": "npx git-cz",
9-
"test": "lerna run test --stream",
9+
"test": "jest",
1010
"gc": "sh ./scripts/gc.sh"
1111
},
1212
"peerDependencies": {
@@ -19,6 +19,9 @@
1919
"cz-conventional-changelog": "^3.2.0",
2020
"lerna": "^3.22.1",
2121
"typescript": "^3.9.7",
22+
"jest": "^24.1.0",
23+
"ts-jest": "^26.1.3",
24+
"vue-jest": "5.0.0-alpha.1",
2225
"vite": "^1.0.0-rc.1"
2326
},
2427
"config": {

packages/button/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@
33
"version": "0.0.0",
44
"main": "dist/index.js",
55
"license": "MIT",
6-
<<<<<<< HEAD
7-
"scripts": {
8-
"test": "jest --config ../../jest.config.js --rootDir ."
9-
},
106
"peerDependencies": {
117
"vue": "^3.0.0-rc.1"
128
},
139
"devDependencies": {
14-
"@vue/test-utils": "^2.0.0-beta.0",
15-
"jest": "^26.1.0",
16-
"ts-jest": "^26.1.3",
17-
"vue-jest": "5.0.0-alpha.1"
10+
"@vue/test-utils": "^2.0.0-beta.0"
1811
}
1912
}

0 commit comments

Comments
 (0)