Skip to content

Commit 8a77878

Browse files
committed
chore: 增加自动化测试script
1 parent 5504366 commit 8a77878

File tree

2 files changed

+336
-2
lines changed

2 files changed

+336
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add ./CHANGELOG.md",
1010
"format": "eslint --fix . --ext .js,.ts,.cjs,.mjs",
1111
"release": "bumpp package.json packages/*/package.json --commit --push --tag",
12-
"test": "jest --runInBand"
12+
"example:start": "pnpm run dev --filter example",
13+
"test:e2e": "jest --runInBand",
14+
"test": "run-p example:start test:e2e"
1315
},
1416
"publishConfig": {
1517
"directory": "packages/*"
@@ -44,7 +46,8 @@
4446
"rollup-plugin-typescript2": "^0.27.1",
4547
"ts-jest": "^28.0.2",
4648
"ts-node": "^10.7.0",
47-
"typescript": "^4.6.4"
49+
"typescript": "^4.6.4",
50+
"npm-run-all": "^4.1.5"
4851
},
4952
"lint-staged": {
5053
"{packages, example}/**/*.{ts, cjs, mjs}": [

0 commit comments

Comments
 (0)