MCPcopy Create free account
hub / github.com/aws/constructs / MyConstruct

Class MyConstruct

test/construct.test.ts:392–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390test('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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected