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');