Skip to content

Commit

Permalink
chore: updated config
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Oct 23, 2024
1 parent 4046c18 commit ec44e21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dotenv.config({ path: path.resolve(__dirname, '.env') });

const headless = process.env.HEADLESS?.toLowerCase() !== 'false' && process.env.HEADLESS !== '0';
const timeout = Number(process.env.TIMEOUT) || 30000;
const workers = process.env.WORKERS ? Number(process.env.WORKERS) : (process.env.CI ? 10 : undefined);

/**
* See https://playwright.dev/docs/test-configuration.
Expand All @@ -25,7 +26,7 @@ export default defineConfig({
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
workers,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
Expand Down

0 comments on commit ec44e21

Please sign in to comment.