diff --git a/packages/destination-subscriptions/src/__tests__/fql.test.ts b/packages/destination-subscriptions/src/__tests__/fql.test.ts index 1ae1c723a08..06f9fcb7ee0 100644 --- a/packages/destination-subscriptions/src/__tests__/fql.test.ts +++ b/packages/destination-subscriptions/src/__tests__/fql.test.ts @@ -5,7 +5,7 @@ const testFql = (fql: string, ast: any): void => { expect(generateFql(ast)).toEqual(fql) } -const expectedTypeError = new Error("Cannot read property 'type' of undefined") +const expectedTypeError = new Error('"error": [TypeError: Cannot read properties of undefined (reading \'type\')]') expectedTypeError.name = 'TypeError' test('should handle invalid payloads', () => {