Skip to content

Commit

Permalink
chore(scripts): rename test to test:unit to avoid conflict
Browse files Browse the repository at this point in the history
Running `bun test` is not equivalent to `bun run test` since `test` is a reserved script.
  • Loading branch information
metonym committed Apr 8, 2024
1 parent 082040e commit 8c43d44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
run: |
bun install
bun run playwright install --with-deps
bun run build:lib
bun run test
bun run test:e2e
bun build:lib
bun test:unit
bun test:e2e
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "bunx --bun astro build",
"build:lib": "bun scripts/index.js",
"package": "bun scripts/npm-package.js",
"test": "bun test tests/*.ts",
"test:unit": "bun test tests/*.ts",
"test:e2e": "playwright test",
"format": "bunx --bun prettier --write .",
"astro": "astro",
Expand Down

0 comments on commit 8c43d44

Please sign in to comment.