From ac9e977a92e91f3c1998c65488d3802f48008940 Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Fri, 14 Oct 2022 15:08:14 +0800 Subject: [PATCH] fix failed test --- test/runtime/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/runtime/index.ts b/test/runtime/index.ts index 772441a686..797e4ce37f 100644 --- a/test/runtime/index.ts +++ b/test/runtime/index.ts @@ -48,7 +48,7 @@ describe('runtime', () => { } const testName = `${dir} ${hydrate ? `(with hydration${from_ssr_html ? ' from ssr rendered html' : ''})` : ''}`; - (config.skip ? it.skip : solo ? it.only : it)(testName, (done) => { + (config.skip ? it.skip : solo ? it.only : it)(testName, () => { if (failed.has(dir)) { // this makes debugging easier, by only printing compiled output once throw new Error('skipping test, already failed'); @@ -196,14 +196,12 @@ describe('runtime', () => { .catch(err => { // print a clickable link to open the directory err.stack += `\n\ncmd-click: ${path.relative(process.cwd(), cwd)}/main.svelte`; - done(err); throw err; }) .then(() => { flush(); if (config.after_test) config.after_test(); - done(); }); }); }