Skip to content

Commit

Permalink
fix: test cases should fail when it should fail (sveltejs#7139)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau authored and nevilm-lt committed Apr 21, 2022
1 parent 5a71d1c commit ce04cf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ 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();
done(err);
throw err;
})
.then(() => {
Expand Down
4 changes: 2 additions & 2 deletions test/server-side-rendering/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ describe('ssr', () => {
}

if (show) showOutput(dir, { generate: 'ssr', format: 'cjs' });
done();
} catch (err) {
showOutput(dir, { generate: 'ssr', format: 'cjs' });
err.stack += `\n\ncmd-click: ${path.relative(process.cwd(), dir)}/main.svelte`;
throw err;
done(err);
} finally {
set_current_component(null);
done();
}
});
});
Expand Down

0 comments on commit ce04cf3

Please sign in to comment.