Skip to content

Commit

Permalink
fix(tests): make less assumptions about environment in config.test.ts
Browse files Browse the repository at this point in the history
don't require the terraform-cdk to be checked out into a directory with exactly that name for this test case to succeed. Reported by @yufeiminds in https://github.com/hashicorp/terraform-cdk/pull/790\#issuecomment-879046497
  • Loading branch information
ansgarm committed Jul 13, 2021
1 parent a3b7eb5 commit 0eb21a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cdktf-cli/test/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe("parseConfig", () => {
};
const parsed: any = parseConfig(JSON.stringify(input));
expect(parsed.terraformModules[0].localSource).toMatch(
"terraform-cdk/packages/cdktf-cli/foo"
"/packages/cdktf-cli/foo"
);
});

Expand Down

0 comments on commit 0eb21a5

Please sign in to comment.