Closed ghost closed 2 years ago
This will allow us to do checks like
await expect( createUser(undefined, true, company.id) ).rejects .toThrow("Uniqueness violation");
where we assert a certain "type" of error is thrown.
This will allow us to do checks like
where we assert a certain "type" of error is thrown.