This is the most semantic way I’ve found.
It is even just a translation of the test name.
describe("Foo.bar()", () => {
test("Should not throw", async () => {
await expect(new Foo().bar()).resolves.not.toThrow();
});
});
This is the most semantic way I’ve found.
It is even just a translation of the test name.
describe("Foo.bar()", () => {
test("Should not throw", async () => {
await expect(new Foo().bar()).resolves.not.toThrow();
});
});