Describe the bug
With the latest Sentry version 6.8.0 and the dedupe integration (https://github.com/getsentry/sentry-javascript/pull/3730), it's not possible to have a duplicated error. Testkit.reset() should allow to duplicate an error by resetting state and fingerprints as well.
To Reproduce
test('should testkit reset clear state and fingerprints', async function() {
const error = new Error('simple error')
Sentry.captureException(error)
await waitForExpect(() => expect(testkit.reports()).toHaveLength(1))
expect(testkit.isExist(error)).toBe(true)
testkit.reset() // Should remove state and fingerprints
Sentry.captureException(error)
await waitForExpect(() => expect(testkit.reports()).toHaveLength(1))
expect(testkit.isExist(error)).toBe(true)
})
Sentry Versions (please complete the following information):
Describe the bug With the latest Sentry version 6.8.0 and the dedupe integration (https://github.com/getsentry/sentry-javascript/pull/3730), it's not possible to have a duplicated error.
Testkit.reset()
should allow to duplicate an error by resetting state and fingerprints as well.To Reproduce
Sentry Versions (please complete the following information):