diff --git a/test.ts b/test.ts index 2601d0e..8052404 100644 --- a/test.ts +++ b/test.ts @@ -133,9 +133,9 @@ export const findResourceInstance = ( * Creates a test-case for each variable provided and ensures that the apply * fails without it. */ -export const testRequiredVariables = ( +export const testRequiredVariables = >( dir: string, - vars: Record, + vars: TVars, ) => { // Ensures that all required variables are provided. it("required variables", async () => { diff --git a/windows-rdp/main.test.ts b/windows-rdp/main.test.ts index 402df53..4e34285 100644 --- a/windows-rdp/main.test.ts +++ b/windows-rdp/main.test.ts @@ -1,4 +1,4 @@ -import { beforeAll, describe, expect, it, test } from "bun:test"; +import { describe, expect, it, test } from "bun:test"; import { executeScriptInContainer, runTerraformApply, @@ -13,13 +13,11 @@ type TestVariables = Readonly<{ admin_password?: string; }>; -describe("Web RDP", () => { - beforeAll(async () => { - await runTerraformInit(import.meta.dir); - testRequiredVariables(import.meta.dir, { - agent_id: "foo", - resource_id: "bar", - }); +describe("Web RDP", async () => { + await runTerraformInit(import.meta.dir); + testRequiredVariables(import.meta.dir, { + agent_id: "foo", + resource_id: "bar", }); it("Installs the Devolutions Gateway Angular app locally on the machine", async () => { @@ -27,6 +25,8 @@ describe("Web RDP", () => { agent_id: "foo", resource_id: "bar", }); + + throw new Error("Not implemented yet"); }); /**