0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00

fix annoying SSR test failures with solo tests

This commit is contained in:
Rich-Harris 2017-04-18 21:38:30 -04:00
parent f9432d1a69
commit 61cbd4fa97

View File

@ -107,7 +107,10 @@ describe( 'ssr', () => {
}
}
const component = require( `../runtime/samples/${dir}/main.html` );
const resolved = require.resolve( `../runtime/samples/${dir}/main.html` );
delete require.cache[ resolved ];
const component = require( resolved );
let html;
try {