diff --git a/test/csharp/provider-add-command/test.ts b/test/csharp/provider-add-command/test.ts index 727fc2385d..a6af7b25a0 100644 --- a/test/csharp/provider-add-command/test.ts +++ b/test/csharp/provider-add-command/test.ts @@ -4,7 +4,10 @@ describe("provider add command", () => { describe("pre-built", () => { let driver: TestDriver; beforeEach(async () => { - driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script + driver = new TestDriver(__dirname, { + CDKTF_DIST: "", + DISABLE_VERSION_CHECK: "true", + }); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli await driver.setupCsharpProject({ init: { additionalOptions: "--cdktf-version 0.10.4" }, }); diff --git a/test/java/provider-add-command/test.ts b/test/java/provider-add-command/test.ts index 9ecd08bbc1..e8d1bdfff2 100644 --- a/test/java/provider-add-command/test.ts +++ b/test/java/provider-add-command/test.ts @@ -5,7 +5,10 @@ describe("provider add command", () => { describe("pre-built", () => { beforeEach(async () => { - driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script + driver = new TestDriver(__dirname, { + CDKTF_DIST: "", + DISABLE_VERSION_CHECK: "true", + }); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli await driver.setupJavaProject({ init: { additionalOptions: "--cdktf-version 0.10.4" }, }); diff --git a/test/python/provider-add-command/test.ts b/test/python/provider-add-command/test.ts index e113468734..b51a39a73d 100644 --- a/test/python/provider-add-command/test.ts +++ b/test/python/provider-add-command/test.ts @@ -6,7 +6,10 @@ describe("provider add command", () => { describe("pre-built", () => { describe("pipenv", () => { beforeAll(async () => { - driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script + driver = new TestDriver(__dirname, { + CDKTF_DIST: "", + DISABLE_VERSION_CHECK: "true", + }); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli await driver.setupPythonProject({ init: { additionalOptions: "--cdktf-version 0.10.4" }, }); @@ -31,7 +34,10 @@ describe("provider add command", () => { describe("pip", () => { beforeAll(async () => { - driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script + driver = new TestDriver(__dirname, { + CDKTF_DIST: "", + DISABLE_VERSION_CHECK: "true", + }); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli await driver.setupPythonProject({ init: { additionalOptions: "--cdktf-version 0.10.4" }, }); diff --git a/test/typescript/provider-add-command/test.ts b/test/typescript/provider-add-command/test.ts index bcb6cbf5aa..274031f604 100644 --- a/test/typescript/provider-add-command/test.ts +++ b/test/typescript/provider-add-command/test.ts @@ -4,7 +4,10 @@ describe("provider add command", () => { describe("pre-built", () => { let driver: TestDriver; beforeEach(async () => { - driver = new TestDriver(__dirname, { CDKTF_DIST: "" }); // reset CDKTF_DIST set by run-against-dist script + driver = new TestDriver(__dirname, { + CDKTF_DIST: "", + DISABLE_VERSION_CHECK: "true", + }); // reset CDKTF_DIST set by run-against-dist script & disable version check as we have to use an older version of cdktf-cli await driver.setupTypescriptProject({ init: { additionalOptions: "--cdktf-version 0.10.4" }, });