fix annoying SSR test failures with solo tests

pull/502/head
Rich-Harris 9 years ago
parent f9432d1a69
commit 61cbd4fa97

@ -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; let html;
try { try {

Loading…
Cancel
Save