diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1e7802d..47be775 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,6 +48,8 @@ Clone the repository and install the dependencies: git clone git@github.com:Topsort/topsort.js.git cd topsort.js bun install +# Install browsers for end to end tests +bun run install:e2e ``` ## Running Locally diff --git a/bun.lockb b/bun.lockb index 500b13a..c4c0efb 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 4f31da3..f773028 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/playwright.config.ts b/playwright.config.ts index b7af23b..b4ee425 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -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",