Skip to content

Commit

Permalink
chore: remove test for open as this is not possible to test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm authored and DanielMSchmidt committed Feb 12, 2024
1 parent adbb5ad commit 2e29b15
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions packages/cdktf-cli/src/test/cmds/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,4 @@ describe("init command", () => {
expect(result.stdout).not.toContain(`Detected Terraform Cloud token.`);
});
}, 30_000);

it("opens up the browser and waits for the token input", async () => {
await mkdtemp(async (cwd) => {
const input = "Y\n";
const result = await execa(
cdktfBin,
[
"init",
"--template=go",
"--from-terraform-project=false",
"--enable-crash-reporting=false",
],
{
stdio: "pipe",
cwd,
input,
}
);
expect(result.stderr).toEqual("");
expect(result.stdout).toContain(`opening webpage using your browser.`);
expect(result.stdout).toContain(`Token for app.terraform.io`);
});
}, 30_000);
});

0 comments on commit 2e29b15

Please sign in to comment.