Loading...
Loading...
Apply when you write, change, or keep a test. Call the code the way its users do and assert the result they observe against a literal expected value. If the test would still pass when every imported function returns undefined, rewrite the assertion or delete the test.
npx skill4agent add hachej/boring-stack principle-test-behavior-not-implementationundefinedundefinedexpecttoBeDefinedtoBeTruthynot.toThrowtoBeInstanceOftoBeGreaterThan(0)toHaveBeenCallednot.toHaveBeenCalledtoBeUndefinedtoEqual([])toHaveLength(0)not.toBe(wrongValue)expect(f(a)).toBe(f(a))expect(parsed.url).toBe(buildUrl(...))expect(LIMITS.maxTools).toBe(8)expect(PROMPT).toContain("You are")beforeEachexpect(slugify("Hello, World!")).toBe("hello-world")*.test-d.ts