[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: only build nuxt once for browser tests (#423)

authored by

Daniel Roe and committed by
GitHub
f01da045 202b582b

+11 -2
+1 -1
.github/workflows/ci.yml
··· 61 61 browser: 62 62 runs-on: ubuntu-latest 63 63 container: 64 - image: mcr.microsoft.com/playwright:v1.57.0-noble 64 + image: mcr.microsoft.com/playwright:v1.58.0-noble 65 65 66 66 steps: 67 67 - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
+10 -1
playwright.config.ts
··· 3 3 import { defineConfig, devices } from '@playwright/test' 4 4 import type { ConfigOptions } from '@nuxt/test-utils/playwright' 5 5 6 + const baseURL = 'http://localhost:5678' 7 + 6 8 export default defineConfig<ConfigOptions>({ 7 9 testDir: './tests', 8 10 fullyParallel: true, 9 11 forbidOnly: !!process.env.CI, 10 12 retries: process.env.CI ? 2 : 0, 11 - workers: process.env.CI ? 1 : undefined, 12 13 reporter: 'html', 13 14 timeout: 120_000, 15 + webServer: { 16 + command: 'NODE_ENV=test pnpm build && pnpm preview --port 5678', 17 + url: baseURL, 18 + reuseExistingServer: false, 19 + timeout: 120_000, 20 + }, 14 21 use: { 22 + baseURL, 15 23 trace: 'on-first-retry', 16 24 nuxt: { 17 25 rootDir: fileURLToPath(new URL('.', import.meta.url)), 26 + host: baseURL, 18 27 }, 19 28 }, 20 29 projects: [