When generating tests, follow this process:
Organize tests into categories:
Follow these conventions:
describe("ModuleName", () => {
describe("functionName", () => {
it("should [expected behavior] when [condition]", () => {
// Arrange — set up inputs and mocks
// Act — call the function
// Assert — verify the result
});
});
});
Before finalizing: