Skip to content

Commit 0c50aed

Browse files
authored
chore: disable tests that touch DPDY file (RHIDP-10876) (#4489)
Signed-off-by: Nick Boldt <nboldt@redhat.com>
1 parent 4f07095 commit 0c50aed

1 file changed

Lines changed: 28 additions & 26 deletions

File tree

dynamic-plugins/_utils/src/wrappers.test.ts

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ const IGNORE_GLOB = ["**/node_modules/**", "**/dist-dynamic/**"];
88

99
const ROOT_DIR = path.join(__dirname, "../../..");
1010
const DYNAMIC_PLUGINS_DIR = path.join(ROOT_DIR, "dynamic-plugins/wrappers");
11-
const DYNAMIC_PLUGINS_CONFIG_FILE = path.join(
12-
ROOT_DIR,
13-
"dynamic-plugins.default.yaml",
14-
);
11+
// RHIDP-10876 don't use the dynamic-plugins.default.yaml in the root of the RHDH repo anymore
12+
// const DYNAMIC_PLUGINS_CONFIG_FILE = path.join(
13+
// ROOT_DIR,
14+
// "dynamic-plugins.default.yaml",
15+
// );
1516
const APP_CONFIG_DYNAMIC_PLUGINS_CONFIG_FILE = path.join(
1617
ROOT_DIR,
1718
"app-config.dynamic-plugins.yaml",
@@ -195,28 +196,29 @@ describe("Dynamic Plugin Wrappers", () => {
195196
);
196197
});
197198

198-
describe("(dynamic-plugins.default.yaml) should have a valid config", () => {
199-
const config = parseYamlFile<DynamicPluginsConfig>(
200-
DYNAMIC_PLUGINS_CONFIG_FILE,
201-
);
202-
203-
it("should have a corresponding package", () => {
204-
validateDynamicPluginsConfig(config, wrapperDirNames);
205-
});
206-
207-
it.each(frontendPackageJsonFiles)(
208-
"$scalprum.name should exist in the config",
209-
({ scalprum }) => {
210-
expect(
211-
config.plugins.some((plugin) =>
212-
Object.keys(
213-
plugin.pluginConfig?.dynamicPlugins?.frontend ?? {},
214-
).includes(scalprum.name),
215-
),
216-
).toBeTruthy();
217-
},
218-
);
219-
});
199+
// RHIDP-10876 don't use the dynamic-plugins.default.yaml in the root of the RHDH repo anymore
200+
// describe("(dynamic-plugins.default.yaml) should have a valid config", () => {
201+
// const config = parseYamlFile<DynamicPluginsConfig>(
202+
// DYNAMIC_PLUGINS_CONFIG_FILE,
203+
// );
204+
205+
// it("should have a corresponding package", () => {
206+
// validateDynamicPluginsConfig(config, wrapperDirNames);
207+
// });
208+
209+
// it.each(frontendPackageJsonFiles)(
210+
// "$scalprum.name should exist in the config",
211+
// ({ scalprum }) => {
212+
// expect(
213+
// config.plugins.some((plugin) =>
214+
// Object.keys(
215+
// plugin.pluginConfig?.dynamicPlugins?.frontend ?? {},
216+
// ).includes(scalprum.name),
217+
// ),
218+
// ).toBeTruthy();
219+
// },
220+
// );
221+
// });
220222

221223
describe("(app-config.dynamic-plugins.yaml) should have a valid config", () => {
222224
const config = parseYamlFile<DynamicPluginAppConfig>(

0 commit comments

Comments
 (0)