| 390 | test('node.addValidation() can be implemented to perform validation, node.validate() will return errors', () => { |
| 391 | |
| 392 | class MyConstruct extends Construct { |
| 393 | constructor(scope: Construct, id: string) { |
| 394 | super(scope, id); |
| 395 | |
| 396 | this.node.addValidation({ validate: () => ['my-error1', 'my-error2'] }); |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | class YourConstruct extends Construct { |
| 401 | constructor(scope: Construct, id: string) { |
nothing calls this directly
no outgoing calls
no test coverage detected