carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1import { defineConfig } from '@playwright/test';
2
3const reporter: any[] = [['list']];
4if (process.env.RESULTS_FILE) reporter.push(['json', { outputFile: process.env.RESULTS_FILE }]);
5
6export default defineConfig({
7 testDir: '.',
8 workers: 4,
9 retries: 0,
10 timeout: 30_000,
11 expect: { timeout: 5_000 },
12 reporter,
13 use: { baseURL: process.env.BASE_URL, browserName: 'chromium', viewport: { width: 1280, height: 720 } },
14 projects: [
15 { name: 'js-on', use: { javaScriptEnabled: true } },
16 { name: 'js-off', use: { javaScriptEnabled: false } },
17 ],
18});
19