From bd55e2b4815c90fff938f935fa659bf0ef623523 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Tue, 13 Dec 2022 11:35:35 +1100 Subject: [PATCH] Fix test failure --- code/lib/core-server/src/withTelemetry.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/lib/core-server/src/withTelemetry.test.ts b/code/lib/core-server/src/withTelemetry.test.ts index 64de5a82ed5..a63df263dea 100644 --- a/code/lib/core-server/src/withTelemetry.test.ts +++ b/code/lib/core-server/src/withTelemetry.test.ts @@ -65,7 +65,7 @@ describe('when command fails', () => { withTelemetry('dev', { cliOptions: { disableTelemetry: true } }, run) ).rejects.toThrow(error); - expect(telemetry).toHaveBeenCalledTimes(1); + expect(telemetry).toHaveBeenCalledTimes(0); expect(telemetry).not.toHaveBeenCalledWith( 'error', { eventType: 'dev', error },