terraform-cdk
terraform-cdk copied to clipboard
Show the result of expect(synth).toBeValidTerraform()
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Considering integration testing with Terraform like described in the documentation.
It would be super helpful to see the reason why expect(synth).toBeValidTerraform();
fails.
Atm it only says it failed: Expected subject to be a valid terraform stack: Error: Command failed: terraform validate -json
One has to go to the temp folder synth
and execute terraform validate by hand to see: Error: "name" cannot be longer than 32 characters
.