Test Generation Skill

When generating tests, follow this process:

1. Analyze the Target

2. Plan Test Cases

Organize tests into categories:

Happy Path

Edge Cases

Error Cases

Integration Points

3. Write Tests

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
    });
  });
});

Mocking Strategy

Assertions

4. Quality Checks

Before finalizing: