diff --git a/web-test-runner.config.js b/web-test-runner.config.js index 329cde552e..32a1faa76f 100644 --- a/web-test-runner.config.js +++ b/web-test-runner.config.js @@ -10,4 +10,11 @@ export default pfeTestRunnerConfig({ plugins: [ a11ySnapshotPlugin(), ], + middleware: [ + async function(ctx) { + if (ctx.path.match(/@patternfly\/icons\/.*\.js/)) { + ctx.redirect(`/node_modules/${ctx.path}`); + } + }, + ], });