diff --git a/integration-tests/toThrowErrorMatchingSnapshot/__tests__/accept-custom-snapshot-name.test.js b/integration-tests/toThrowErrorMatchingSnapshot/__tests__/accept-custom-snapshot-name.test.js new file mode 100644 index 000000000000..4f955d35bb88 --- /dev/null +++ b/integration-tests/toThrowErrorMatchingSnapshot/__tests__/accept-custom-snapshot-name.test.js @@ -0,0 +1,5 @@ +test('accepts custom snapshot name', () => { + expect(() => { + throw new Error('apple'); + }).toThrowErrorMatchingSnapshot('custom-name'); +});