missed a spot

pull/9754/head
Rich Harris 3 years ago
parent 9873d8141f
commit 8b084cdca0

@ -41,11 +41,11 @@ const { test, run } = suite<CompilerErrorTest>((config, cwd) => {
}
}
if (fs.existsSync(`${cwd}/main.js`)) {
if (fs.existsSync(`${cwd}/main.svelte.js`)) {
let caught_error = false;
try {
compileModule(fs.readFileSync(`${cwd}/main.js`, 'utf-8'), {
compileModule(fs.readFileSync(`${cwd}/main.svelte.js`, 'utf-8'), {
generate: 'client'
});
} catch (e) {

Loading…
Cancel
Save