From 8a28665326b9a4535e4a6ae82894c792522021ba Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Mon, 18 Sep 2023 16:22:03 +0200 Subject: [PATCH] Fix the few e2e tests --- packages/params/test/e2e/overridePreset.test.ts | 3 +++ packages/params/test/e2e/setPreset.test.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/params/test/e2e/overridePreset.test.ts b/packages/params/test/e2e/overridePreset.test.ts index e16dd97a08ef..c03e54a480da 100644 --- a/packages/params/test/e2e/overridePreset.test.ts +++ b/packages/params/test/e2e/overridePreset.test.ts @@ -24,6 +24,9 @@ describe("Override preset", function () { this.timeout(30_000); it("Should correctly override preset", async () => { + // These commands can not run with minimal preset + if (process.env.LODESTAR_PRESET === "minimal") delete process.env.LODESTAR_PRESET; + await exec(`node --loader ts-node/esm ${path.join(__dirname, scriptNames.ok)}`); }); diff --git a/packages/params/test/e2e/setPreset.test.ts b/packages/params/test/e2e/setPreset.test.ts index 2b7ff271cd94..38942d2ee514 100644 --- a/packages/params/test/e2e/setPreset.test.ts +++ b/packages/params/test/e2e/setPreset.test.ts @@ -24,6 +24,9 @@ describe("setPreset", function () { this.timeout(30_000); it("Should correctly set preset", async () => { + // These commands can not run with minimal preset + if (process.env.LODESTAR_PRESET === "minimal") delete process.env.LODESTAR_PRESET; + await exec(`node --loader ts-node/esm ${path.join(__dirname, scriptNames.ok)}`); });