Skip to content

Commit eae2296

Browse files
committed
fix: update script to call tests
1 parent 6531041 commit eae2296

File tree

3 files changed

+1252
-3
lines changed

3 files changed

+1252
-3
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
"packageManager": "[email protected]",
99
"scripts": {
1010
"preinstall": "npx only-allow pnpm",
11-
"test": "pnpm -r test",
11+
"test": "cd packages/core && pnpm test:all",
1212
"prepack:core": "pnpm -F @austinserb/react-zero-ui pack --pack-destination ./dist",
1313
"i-tarball": "node scripts/install-local-tarball.js",
1414
"lint": "eslint .",
1515
"lint:fix": "eslint . --fix",
16-
"test:all": "pnpm install --frozen-lockfile && pnpm prepack:core && pnpm lint && pnpm i-tarball && pnpm test"
16+
"test:all": "pnpm install --frozen-lockfile && pnpm prepack:core && pnpm lint && pnpm i-tarball && cd packages/core && pnpm test:all",
17+
"test:vite": "cd packages/core && pnpm test:vite",
18+
"test:next": "cd packages/core && pnpm test:next"
1719
},
1820
"devDependencies": {
1921
"eslint": "^9.0.0",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test:vite": "playwright test -c __tests__/config/playwright.vite.config.js",
3838
"test:unit": "node --test __tests__/unit/index.test.cjs",
3939
"test:cli": "node --test __tests__/unit/cli.test.cjs",
40-
"test:all": "pnpm run test:unit && pnpm run test:cli && pnpm run test:next && pnpm run test:vite",
40+
"test:all": "pnpm run test:next && pnpm run test:vite && pnpm run test:unit && pnpm run test:cli",
4141
"test": "pnpm run test:all",
4242
"lint": "eslint ."
4343
},

0 commit comments

Comments
 (0)