Skip to content

Commit

Permalink
Update test environment configuration and URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
genu committed Feb 25, 2024
1 parent 53398ef commit b79045d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PORT=3001
NUXT_PUBLIC_LOGROCKET_APP_ID=""
DATABASE_URL="postgresql://test:test@localhost:5433/test"

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"docker:down": "docker-compose down",
"test": "pnpm docker:up -d && playwright test && pnpm docker:down",
"test:db": "pnpm docker:down && pnpm docker:up",
"test:dev": "dotenv -e .env.test -- prisma migrate dev && nuxt dev --dotenv .env.test --port 3001",
"test:ci": "dotenv -e .env.test -- prisma migrate deploy && nuxt build --dotenv .env.test && nuxt start --dotenv .env.test --port 3001",
"test:dev": "dotenv -e .env.test -- prisma migrate dev && nuxt dev --dotenv .env.test",
"test:ci": "dotenv -e .env.test -- prisma migrate dev && nuxt build --dotenv .env.test && nuxt preview --dotenv .env.test",
"playwright:ui": "playwright test --ui",
"dotenv": "dotenv"
},
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: 'pnpm test:ci',
url: 'http://localhost:3001',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 300000, // 5 minutes
},
Expand Down

0 comments on commit b79045d

Please sign in to comment.