Skip to content

Commit

Permalink
chore: more revert
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 9, 2024
1 parent 8527a47 commit 61d75ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions examples/react-ssr/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { defineConfig, devices } from "@playwright/test";

const port = Number(process.env["E2E_PORT"] || 6174);
const command = process.env["E2E_PREVIEW"]
const isPreview = Boolean(process.env["E2E_PREVIEW"]);
const command = isPreview
? `pnpm preview --port ${port} --strict-port`
: process.env["E2E_WORKERD"]
? `pnpm dev-workerd --port ${port} --strict-port`
: `pnpm dev --port ${port} --strict-port`;
: `pnpm dev --port ${port} --strict-port`;

export default defineConfig({
testDir: "e2e",
Expand All @@ -22,6 +21,7 @@ export default defineConfig({
command,
port,
},
grepInvert: isPreview ? /@dev/ : /@build/,
forbidOnly: !!process.env["CI"],
retries: process.env["CI"] ? 2 : 0,
reporter: "list",
Expand Down
8 changes: 1 addition & 7 deletions examples/react-ssr/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"extends": "@tsconfig/strictest/tsconfig.json",
"include": [
"src",
"vite.config.ts",
"vite.config.workerd.ts",
"e2e",
"playwright.config.ts"
],
"include": ["src", "vite.config.ts", "e2e", "playwright.config.ts"],
"compilerOptions": {
"exactOptionalPropertyTypes": false,
"verbatimModuleSyntax": true,
Expand Down

0 comments on commit 61d75ae

Please sign in to comment.