Skip to content

Commit

Permalink
test: resolve icon imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Jun 4, 2024
1 parent 9702278 commit 75c5441
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web-test-runner.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
},
],
});

0 comments on commit 75c5441

Please sign in to comment.