Share file snapshots across platforms (#6282)

* Share file snapshots across platforms

* Always skip file snapshot tests on Windows
This commit is contained in:
Jace Browning
2025-04-14 09:26:52 -04:00
committed by GitHub
parent 5c188664bd
commit 22dd4a67dd
9 changed files with 16 additions and 59 deletions

View File

@ -32,11 +32,13 @@ export default defineConfig({
timeout: 120_000, // override the default 30s timeout
testDir: './e2e/playwright',
testIgnore: '*.test.ts', // ignore unit tests
/* Share snapshots across all platforms */
snapshotPathTemplate: '{testDir}/{testFileName}-snapshots/{arg}{ext}',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: true,
/* Do not retry */
forbidOnly: Boolean(process.env.CI),
/* Do not retry using Playwright's built-in retry mechanism */
retries: 0,
/* Use all available CPU cores */
workers: workers,