pulumi / pulumi-policy-aws

A policy pack of rules to enforce AWS best practices for security, reliability, cost, and more!
https://www.pulumi.com
Apache License 2.0
34 stars 6 forks source link

Update integration tests to use TypeScript rather than JavaScript #62

Closed justinvp closed 4 years ago

justinvp commented 4 years ago

Our integration tests currently create a custom policy pack that uses AwsGuard using JavaScript.

https://github.com/pulumi/pulumi-policy-aws/blob/d1416b015b96355527a3cec1ff411d396db08bd7/integration-tests/awsguard.go#L122-L143

This works, but doesn't catch any potential TypeScript compiler errors. We should switch to generating a TypeScript file to ensure using the library from TypeScript works.