fix: test cases should fail when it should fail (#7139)

pull/7140/head
Tan Li Hau 3 years ago committed by GitHub
parent fffe66a6a0
commit 815bc7ef6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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(() => {

@ -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();
}
});
});

Loading…
Cancel
Save