Skip to content

Commit 9a4e6fe

Browse files
committed
ignoreAssets in tests
1 parent 9fae930 commit 9a4e6fe

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

packages/cdk-pull-request-check/src/__tests__/pull-request-check.test.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ test('default setup', (): void => {
2323
});
2424

2525
// THEN
26-
expect(stack).toMatchCdkSnapshot();
26+
expect(stack).toMatchCdkSnapshot({
27+
ignoreAssets: true,
28+
});
2729
});
2830

2931
test('custom setup', (): void => {
@@ -44,7 +46,9 @@ test('custom setup', (): void => {
4446
});
4547

4648
// THEN
47-
expect(stack).toMatchCdkSnapshot();
49+
expect(stack).toMatchCdkSnapshot({
50+
ignoreAssets: true,
51+
});
4852
});
4953

5054
test('privileged', (): void => {
@@ -64,7 +68,9 @@ test('privileged', (): void => {
6468
});
6569

6670
// THEN
67-
expect(stack).toMatchCdkSnapshot();
71+
expect(stack).toMatchCdkSnapshot({
72+
ignoreAssets: true,
73+
});
6874
});
6975

7076
test('custom projectName', (): void => {
@@ -84,7 +90,9 @@ test('custom projectName', (): void => {
8490
});
8591

8692
// THEN
87-
expect(stack).toMatchCdkSnapshot();
93+
expect(stack).toMatchCdkSnapshot({
94+
ignoreAssets: true,
95+
});
8896
});
8997

9098
test('events', (): void => {
@@ -110,7 +118,9 @@ test('events', (): void => {
110118
prCheck.onCheckFailed('failed', { target: new SnsTopic(topic) });
111119

112120
// THEN
113-
expect(stack).toMatchCdkSnapshot();
121+
expect(stack).toMatchCdkSnapshot({
122+
ignoreAssets: true,
123+
});
114124
});
115125

116126
test('randomizer', (): void => {
@@ -135,5 +145,7 @@ test('randomizer', (): void => {
135145
});
136146

137147
// THEN
138-
expect(stack).toMatchCdkSnapshot();
148+
expect(stack).toMatchCdkSnapshot({
149+
ignoreAssets: true,
150+
});
139151
});

0 commit comments

Comments
 (0)