Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/componentFixtures/playwright/playwright.config.ts
13523 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { defineConfig } from '@playwright/test';
7
import { dirname } from 'path';
8
import { fileURLToPath } from 'url';
9
10
const __dirname = dirname(fileURLToPath(import.meta.url));
11
12
export default defineConfig({
13
testDir: './tests',
14
timeout: 30_000,
15
retries: 0,
16
use: {
17
trace: 'retain-on-failure',
18
},
19
webServer: {
20
command: 'npx component-explorer serve -p ../component-explorer.json --background --attach -vv',
21
cwd: __dirname,
22
wait: {
23
stdout: /current: http:\/\/localhost:(?<component_explorer_port>\d+)\/___explorer/,
24
},
25
timeout: 120_000,
26
},
27
});
28
29