Skip to content

Commit

Permalink
add logs to test ci failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Nov 5, 2021
1 parent f0222c8 commit b90d17d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cdktf-cli/test/cmds/convert.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@ resource "null_resource" "dummy" {}

describe("convert command", () => {
it("proposes specifying a provider version", async () => {
console.log("pre mkdtemp");
await mkdtemp(async (cwd) => {
console.log("pre write file " + cwd);
await fs.writeFile(
path.resolve(cwd, "cdktf.json"),
JSON.stringify({ terraformProviders: [] })
);
console.log("pre execa", cdktfBin);
const result = await execa(cdktfBin, ["convert"], {
stdio: "pipe",
cwd,
input,
});
console.log("post execa", result);
expect(result.stderr).toEqual("");
expect(result.stdout).toContain(
`The following providers are missing schema information and might need manual adjustments to synthesize correctly: null.`
Expand Down

0 comments on commit b90d17d

Please sign in to comment.