0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/scripts/nx/playwright-plugin.ts
Sheraff 8ea19a0b64
ci: run the e2e compiles with the compiler's self-checks on
CI's e2e apps now compile with TSR_COMPILER_VERIFY=1: the output verifier,
the internal asserts and the placement invariants throw instead of
warning, so a compiler bug an e2e app reaches fails the run.

- pr.yml sets it on the test job; .nx/ci-config.yaml forwards it to the
  Nx Cloud workers (`workers.with-env-vars`: only NX_* variables are
  forwarded otherwise). Playwright's webServer and the specs that spawn
  their own servers inherit process.env, so dev servers get it too.
- A `compilerSelfChecks` env input on the e2e tasks and the e2e/example
  app builds (nx.json target defaults, the Playwright plugin's inferred
  targets, the streaming-ssr apps' own inputs), so a result from a run
  without it is not replayed as verified. Package builds keep their hashes.
- compiler-platforms.yml's production builds of the e2e app run with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:10:56 +01:00

460 lines
13 KiB