| 406 | } |
| 407 | |
| 408 | class TheirConstruct extends Construct { |
| 409 | constructor(scope: Construct, id: string) { |
| 410 | super(scope, id); |
| 411 | |
| 412 | new YourConstruct(this, 'YourConstruct'); |
| 413 | |
| 414 | this.node.addValidation({ validate: () => ['their-error'] }); |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | class TestStack extends Root { |
| 419 | constructor() { |
nothing calls this directly
no outgoing calls
no test coverage detected