Skip to content

Commit

Permalink
chore: call playwright via bun
Browse files Browse the repository at this point in the history
Avoid using node.js as part of running playwright.
  • Loading branch information
jbergstroem committed Aug 13, 2024
1 parent 7b16485 commit b378e48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Clone the repository and install the dependencies:
git clone [email protected]:Topsort/topsort.js.git
cd topsort.js
bun install
# Install browsers for end to end tests
bun run install:e2e
```

## Running Locally
Expand Down
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
],
"scripts": {
"build": "tsup",
"test:e2e": "bun run build && playwright test",
"test:e2e": "bun run build && bunx --bun playwright test",
"format": "biome check",
"format:fix": "biome check --write",
"prepare": "lefthook install",
"serve:e2e": "bun run ./e2e/server.ts"
"install:e2e": "bunx --bun playwright install",
"prepare": "lefthook install"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
},
],
webServer: {
command: "bun run serve:e2e",
command: "bun run --bun ./e2e/server.ts",
reuseExistingServer: !process.env.CI,
stdout: "ignore",
stderr: "pipe",
Expand Down

0 comments on commit b378e48

Please sign in to comment.