.test.iac extension and run at compile time — no cloud resources required.
Quick Start
Createtests/s3.test.iac:
Two Test Types
Plan Assertions
Compile the project with given inputs and verify the generated TypeScript:Error Assertions
Compile inline source and assert a specific error:Test Organisation
CI Integration
What to Test
- Environment-specific attribute values (staging vs prod instance sizes)
- Conditional resource creation (
whenmodifiers) - Policy violations are caught
- Required fields are missing → correct error
- Cross-resource references are correct
