Skip to content

Instantly share code, notes, and snippets.

@brianfoody
Created October 24, 2020 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianfoody/888b345f0f7988ecf0eadf3f5c4930ad to your computer and use it in GitHub Desktop.
Save brianfoody/888b345f0f7988ecf0eadf3f5c4930ad to your computer and use it in GitHub Desktop.
CDK Tests
test("EventBridge and resources are created", () => {
const app = new cdk.App();
const stack = new MyEvents.MyEventsStack(app, "MyTestStack");
expectCDK(stack).to(haveResource("AWS::Events::EventBus"));
expectCDK(stack).to(haveResource("AWS::EventSchemas::Registry"));
expectCDK(stack).to(haveResource("AWS::EventSchemas::Schema"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment