diff --git a/packages/webpack-module-federation/tests/defineConfig.test.ts b/packages/webpack-module-federation/tests/defineConfig.test.ts index 5797af3cc..6cb9bf1ff 100644 --- a/packages/webpack-module-federation/tests/defineConfig.test.ts +++ b/packages/webpack-module-federation/tests/defineConfig.test.ts @@ -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(); }); @@ -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(); });