mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 06:48:05 -05:00
[guide] Reflect adoption of jest
This commit is contained in:
committed by
Jordan Harband
parent
a9fc9d8a0f
commit
55adae99c9
@@ -3401,7 +3401,7 @@ Other Style Guides
|
||||
- Whichever testing framework you use, you should be writing tests!
|
||||
- Strive to write many small pure functions, and minimize where mutations occur.
|
||||
- Be cautious about stubs and mocks - they can make your tests more brittle.
|
||||
- We primarily use [`mocha`](https://www.npmjs.com/package/mocha) at Airbnb. [`tape`](https://www.npmjs.com/package/tape) is also used occasionally for small, separate modules.
|
||||
- We primarily use [`mocha`](https://www.npmjs.com/package/mocha) and [`jest`](https://www.npmjs.com/package/jest) at Airbnb. [`tape`](https://www.npmjs.com/package/tape) is also used occasionally for small, separate modules.
|
||||
- 100% test coverage is a good goal to strive for, even if it’s not always practical to reach it.
|
||||
- Whenever you fix a bug, _write a regression test_. A bug fixed without a regression test is almost certainly going to break again in the future.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user