From 949d936b049694b5634bc283fbaa66e51b447175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Fern=C3=A1ndez-Capel?= Date: Fri, 8 Sep 2023 10:59:25 +0100 Subject: [PATCH] Merge pull request #981 from AfolabiOlaoluwa/test-framework-fixes fix: Resolve issues with timeouts and target closures in test framework --- web-test-runner.config.mjs | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/web-test-runner.config.mjs b/web-test-runner.config.mjs index c97ae995c..5ee7bae0b 100644 --- a/web-test-runner.config.mjs +++ b/web-test-runner.config.mjs @@ -1,13 +1,29 @@ -import { esbuildPlugin } from '@web/dev-server-esbuild'; -import { playwrightLauncher } from '@web/test-runner-playwright'; +import { esbuildPlugin } from '@web/dev-server-esbuild' +import { playwrightLauncher } from '@web/test-runner-playwright' /** @type {import("@web/test-runner").TestRunnerConfig} */ export default { browsers: [ - playwrightLauncher({ product: 'chromium' }), - playwrightLauncher({ product: 'firefox' }), - playwrightLauncher({ product: 'webkit' }), + playwrightLauncher({ + product: 'chromium', + launchOptions: { + timeout: 60000 + } + }), + playwrightLauncher({ + product: 'firefox', + launchOptions: { + timeout: 60000 + } + }), + playwrightLauncher({ + product: 'webkit', + launchOptions: { + timeout: 60000 + } + }) ], + browserStartTimeout: 600000, nodeResolve: true, files: "./src/tests/unit/**/*_tests.ts", testFramework: { @@ -17,5 +33,5 @@ export default { }, plugins: [ esbuildPlugin({ ts: true, target: "es2020" }) - ], -}; + ] +} \ No newline at end of file