We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c987364 commit 73dedf8Copy full SHA for 73dedf8
packages/core/src/domain/error/error.spec.ts
@@ -241,7 +241,8 @@ describe('flattenErrorCauses', () => {
241
error.cause = nestedError
242
243
const errorCauses = flattenErrorCauses(error, ErrorSource.LOGGER)
244
- expect(errorCauses?.length).toEqual(undefined)
+ expect(errorCauses?.length).toEqual(1)
245
+ expect(errorCauses?.[0]).toEqual(jasmine.objectContaining({ biz: 'buz', cause: jasmine.any(Error) }))
246
})
247
248
it('should use error to extract stack trace', () => {
0 commit comments