From 61cbd4fa9702077122ea6672552ee4b522b74846 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Tue, 18 Apr 2017 21:38:30 -0400 Subject: [PATCH] fix annoying SSR test failures with solo tests --- test/server-side-rendering/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {