Skip to content

Commit

Permalink
fix annoying SSR test failures with solo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 19, 2017
1 parent f9432d1 commit 61cbd4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/server-side-rendering/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 61cbd4f

Please sign in to comment.