From 25aab43b57de90cf7c2109f11205e14e220b8c40 Mon Sep 17 00:00:00 2001 From: gtmnayan Date: Thu, 11 May 2023 20:44:37 +0545 Subject: [PATCH] alright fine keep your timeouts --- test/custom-elements/index.js | 3 ++- test/runtime-playwright/index.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/custom-elements/index.js b/test/custom-elements/index.js index 510bcdf6d4..f86c3532e3 100644 --- a/test/custom-elements/index.js +++ b/test/custom-elements/index.js @@ -9,12 +9,13 @@ import { loadConfig, loadSvelte } from '../helpers'; const assert = fs.readFileSync(`${__dirname}/assert.js`, 'utf-8'); describe('custom-elements', function () { + this.timeout(10000); + let svelte; /** @type {import('@playwright/test').Browser} */ let browser; before(async function () { - this.timeout(10000); svelte = loadSvelte(); console.log('[custom-element] Loaded Svelte'); browser = await chromium.launch(); diff --git a/test/runtime-playwright/index.js b/test/runtime-playwright/index.js index 03b64023ed..804300e84f 100644 --- a/test/runtime-playwright/index.js +++ b/test/runtime-playwright/index.js @@ -12,12 +12,13 @@ const index = path.resolve('index.mjs'); const assert = fs.readFileSync(`${__dirname}/assert.js`, 'utf-8'); -describe('runtime (playwright)', () => { +describe('runtime (playwright)', function () { + this.timeout(10000); + let svelte; let browser; - before(async function () { - this.timeout(10000); + before(async () => { svelte = loadSvelte(false); console.log('[runtime-playwright] Loaded Svelte');