Skip to content

Commit 75c5441

Browse files
committed
test: resolve icon imports
1 parent 9702278 commit 75c5441

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web-test-runner.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ export default pfeTestRunnerConfig({
1010
plugins: [
1111
a11ySnapshotPlugin(),
1212
],
13+
middleware: [
14+
async function(ctx) {
15+
if (ctx.path.match(/@patternfly\/icons\/.*\.js/)) {
16+
ctx.redirect(`/node_modules/${ctx.path}`);
17+
}
18+
},
19+
],
1320
});

0 commit comments

Comments
 (0)