diff --git a/test/server-side-rendering/index.js b/test/server-side-rendering/index.js index d9ac917e54..66f2699fff 100644 --- a/test/server-side-rendering/index.js +++ b/test/server-side-rendering/index.js @@ -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 {