I have errors that I make in code:
export class UnprocessableException extends Error {
constructor(message: string) {
super(responseStatus.UNPROCESSABLE, message);
}
}
I then test them in jest tests like:
try {
....
} catch (e) {
expect(e).toBeInstanceOf(UnprocessableException);
}
This passes/works locally, but on Bitbucket the tests fail with the same commands. The tests all say:
Expected: UnprocessableException
Received: Error
Any idea why jest and bitbucket types don't seem to like each other?