mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
ba4eec7b23
* remove @pyra/eslint-config * wip * wip * convert shirt-shop-api * convert shirt-shop * convert snippets * convert next-13 * convert next-14 * convert next-15 * eslint configs * upgrade prettier * use eslint v9 * run prettier * resolve type-check * adjust eslint * drop Next.js v13 * fix next-14 Avoid accidentally using implicitly installed eslint v8 * update lockfile * rm @eslint/eslintrc * add @next/eslint-plugin-next * biome * biome fixes * wip * apply formatting * tabs * rm prettier * spaces * fix svelte * update lockfile * single quotes * format all * rm eslint-disable comments * upgrade playwright * upgrade publint * upgrade playwright ci workflow * try chromium headless * try adding executablePath
e2e tests
We run e2e tests for multiple versions of Next.js.
We run them for the latest release of every major release from Next.js 13 onwards.
Locally the tests run against the dev server. Playwright will either start the dev server or reuse an already running instance if there is one on the configured port.
In CI the tests run against the production server. We use turbo.json to first build and then start the server.
The test applications are not deployed anywhere to keep the action fast.
Ports
The port of each application indicates the Next.js version
- next-14 runs on 4014
- next-15 runs on 4015
- sveltekit runs on 5173
Developing locally
If you want to write or debug e2e tests for a specific Next.js version you can
Terminal 1
pnpm next-14
Terminal 2
cd tests/next-14pnpm playwright testorpnpm playwright test --ui