A test name is the sentence that is true when it passes
When test("works") fails, it tells the reader nothing. test("refunds the full amount when the order is cancelled within 24 hours") tells them which rule broke.
describe("cancelOrder", () => {
it("refunds the full amount within 24 hours of purchase", …);
it("refunds nothing after the item has shipped", …);
});The list of names is the specification. Read it from top to bottom and you should know what the module does.
testing