Skip to content

Commit

Permalink
Fixing tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance committed Nov 1, 2023
1 parent d15fd11 commit a05e060
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/webpack-module-federation/tests/defineConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ describe("defineDevHostConfig", () => {

const result = findPlugin(config, matchConstructorName(HtmlWebpackPlugin.name));

// This is an option that is relative to the environment running the test and breaks on CI.
delete (result.plugin as HtmlWebpackPlugin.Options)["template"];

expect(result).toMatchSnapshot();
});

Expand Down Expand Up @@ -327,6 +330,9 @@ describe("defineBuildHostConfig", () => {

const result = findPlugin(config, matchConstructorName(HtmlWebpackPlugin.name));

// This is an option that is relative to the environment running the test and breaks on CI.
delete (result.plugin as HtmlWebpackPlugin.Options)["template"];

expect(result).toMatchSnapshot();
});

Expand Down

0 comments on commit a05e060

Please sign in to comment.