From 58036ffb521032a77957b6888127bd640922eec6 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 25 Sep 2024 15:05:33 -0700 Subject: Filter errors that get sent to Sentry (#5247) --- __tests__/lib/errors.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '__tests__') diff --git a/__tests__/lib/errors.test.ts b/__tests__/lib/errors.test.ts index 39e8d189e..e72139684 100644 --- a/__tests__/lib/errors.test.ts +++ b/__tests__/lib/errors.test.ts @@ -9,11 +9,11 @@ describe('isNetworkError', () => { ] const outputs = [true, false, false, true] - it('correctly distinguishes network errors', () => { - for (let i = 0; i < inputs.length; i++) { - const input = inputs[i] - const result = isNetworkError(input) - expect(result).toEqual(outputs[i]) - } - }) + for (let i = 0; i < inputs.length; i++) { + const input = inputs[i] + const output = outputs[i] + it(`correctly distinguishes network errors for ${input}`, () => { + expect(isNetworkError(input)).toEqual(output) + }) + } }) -- cgit 1.4.1