Skip to content

Commit

Permalink
ci: fix test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dy0gu committed Sep 16, 2024
1 parent b75aa10 commit 7157767
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ build/
.next/
out/
tsconfig.tsbuildinfo
vite.config.ts.*

# Miscellaneous
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"private": true,
"sideEffects": false,
"scripts": {
"build": "remix vite:build",
"dev": "cross-env NODE_ENV=development remix vite:dev",
"build": "cross-env NODE_ENV=production remix vite:build",
"start": "cross-env NODE_ENV=production remix-serve ./build/server/index.js",
"test": "playwright install --with-deps && cross-env NODE_ENV=test playwright test",
"typecheck": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineConfig({
},
],
webServer: {
command: "npm run build && npm run start",
command: "npm run build && remix-serve ./build/server/index.js",
port: env.PORT,
reuseExistingServer: !env.CI,
},
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ export default defineConfig({
plugins: [tailwindcss, autoprefixer],
},
},
define: {
__REACT_DEVTOOLS_GLOBAL_HOOK__: JSON.stringify({ isDisabled: true }),
},
});

0 comments on commit 7157767

Please sign in to comment.