Skip to content

Commit

Permalink
fix: renaming file and removing favico
Browse files Browse the repository at this point in the history
  • Loading branch information
barbmarcio committed Jul 23, 2024
1 parent a74c48b commit ed0aa94
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Binary file removed e2e/public/favicon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions e2e/index.ts → e2e/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Bun.serve({
const filePath = `./dist${pathname}`;

try {
if (filePath.endsWith(".ico")) {
return new Response("", { status: 204 });
}

return new Response(file(filePath));
} catch (e) {
return new Response("Not Found", { status: 404 });
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"format": "biome check",
"format:fix": "biome check --write",
"prepare": "lefthook install",
"serve": "bun run ./e2e/index.ts"
"serve:e2e": "bun run ./e2e/server.ts"
},
"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",
command: "bun run serve:e2e",
reuseExistingServer: !process.env.CI,
stdout: "ignore",
stderr: "pipe",
Expand Down

0 comments on commit ed0aa94

Please sign in to comment.