Skip to content

Increase coverage #5

Description

@pflorek

Have for each construct at least a very simple test

For example matching a snapshot:

https://github.com/pepperize/cdk-github/blob/main/test/github-custom-resource.test.ts

describe("GithubCustomResource", () => {
  it("Should match snapshot", () => {
    // Given
    const stack = new Stack();
    new GithubCustomResource(stack, "CR", {
      // ...
    });
    
    // When
    const template = Template.fromStack(stack);
    
    // Then
    expect(template).toMatchSnapshot();
  });
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions