Skip to content

Commit e693ba1

Browse files
authored
Fix guide on writing good tests (#59)
`test` -> `describe` (`test` can't be nested)
1 parent 762c022 commit e693ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ test("Factorial", () => {
182182

183183
```ts
184184
// More concise, plus we get test name formatting
185-
test("Factorial", () => {
185+
describe("Factorial", () => {
186186
test.each([[0, 1], [1, 1], [3, 6], [4, 24]])('%i! = %i', (n, expected) => {
187187
expect(factorial(n)).toBe(expected);
188188
});

0 commit comments

Comments
 (0)