Skip to content

Commit

Permalink
Clean up TransitionPage from client side in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emecell authored and gigabo committed Jan 17, 2018
1 parent 2ab6934 commit 0a79d2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ var testSetupFn = function (specFile, routes, httpsOptions) {
// Since we're not using hot-reloading, we need to explicitly delete all of the require.cache to ensure
// that the latest Webpack compiled server code is being used.
Object.keys(require.cache)
.filter((key) => /(__clientTemp|test-temp)/.test(key))
.filter((key) => /(__clientTemp|test-temp|TransitionPage)/.test(key))
.forEach((key) => delete require.cache[key]);

const {stop, started} = startServer(specFile, routes, httpsOptions);
Expand Down

0 comments on commit 0a79d2f

Please sign in to comment.