From 72db8745b8b85cb4ec95d2224f5f6b81ab4905a6 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 4 May 2022 21:54:11 -0400 Subject: [PATCH] Add ts-ignore Co-authored-by: JJ Kasper --- test/unit/image-optimizer/match-remote-pattern.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/image-optimizer/match-remote-pattern.test.ts b/test/unit/image-optimizer/match-remote-pattern.test.ts index 7185dbde486e..cf4505507706 100644 --- a/test/unit/image-optimizer/match-remote-pattern.test.ts +++ b/test/unit/image-optimizer/match-remote-pattern.test.ts @@ -170,6 +170,7 @@ describe('matchRemotePattern', () => { it('should throw when hostname is missing', () => { const p = { protocol: 'https' } as const + // @ts-ignore testing invalid input expect(() => m(p, new URL('https://example.com'))).toThrow( 'Pattern should define hostname but found\n{"protocol":"https"}' )