Skip to content

Commit

Permalink
Merge pull request #8 from go-to-k/test/snapshot-test
Browse files Browse the repository at this point in the history
test: add a snapshot test
  • Loading branch information
go-to-k committed Sep 10, 2023
2 parents 4908bbe + 00e3a27 commit c9f41b3
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 0 deletions.
230 changes: 230 additions & 0 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const getTemplate = (): Template => {
describe('Fine-grained Assertions Tests', () => {
const template = getTemplate();

test('Snapshot test', () => {
expect(template.toJSON()).toMatchSnapshot();
});

test('Alarm created', () => {
template.resourceCountIs('AWS::CloudWatch::Alarm', 5);
});
Expand Down

0 comments on commit c9f41b3

Please sign in to comment.