Skip to content

Commit f450a3d

Browse files
authored
Merge pull request #478 from Weaverse/cleanup/test-suite-consolidation
Consolidate the test suite into a single unit runner
2 parents a9cee1e + 719dce1 commit f450a3d

6 files changed

Lines changed: 47 additions & 289 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ npm run build # production build (shopify hydrogen build --codegen)
103103
npm run preview # build, then preview the production bundle
104104
npm run typecheck # tsc --noEmit
105105
npm run biome:fix # lint + format (write)
106-
npm run e2e # Playwright end-to-end tests
106+
npm run test # unit tests (tests/unit, Playwright runner)
107107
```
108108

109109
Run `npm run biome:fix && npm run typecheck` before committing.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"dev:ca": "shopify hydrogen dev --codegen --port 3456 --customer-account-push",
3535
"preview": "shopify hydrogen preview --build",
3636
"start": "shopify hydrogen preview",
37-
"test:cart-correctness": "node --experimental-strip-types --test tests/cart-correctness.node.mjs",
3837
"typecheck": "tsc --noEmit",
3938
"weaverse:manifest": "node ./other/generate-component-manifest.mjs",
4039
"weaverse:manifest:check": "node ./other/generate-component-manifest.mjs --check",
@@ -43,9 +42,7 @@
4342
"codegen": "shopify hydrogen codegen",
4443
"hydrogen": "shopify hydrogen",
4544
"clean": "rm -rf dist node_modules package-lock.json pnpm-lock.yaml .shopify .react-router",
46-
"e2e": "npx playwright test",
47-
"e2e:ui": "npx playwright test --ui",
48-
"test:unit": "playwright test --config=playwright.unit.config.ts",
45+
"test": "playwright test --config=playwright.unit.config.ts",
4946
"biome": "biome check",
5047
"biome:fix": "biome check --write",
5148
"format": "biome format --write",

playwright.config.ts

Lines changed: 0 additions & 109 deletions
This file was deleted.

tests/cart.test.ts

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)