Skip to content

Commit e4ffd8c

Browse files
committed
Update readme
1 parent 1c78f24 commit e4ffd8c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
create-react-app is a great tool for bootstrapping a react application, but it
44
comes with Jest as unit test runner - I would rather use mocha.
55

6+
## Why mocha?
7+
8+
Speed!
9+
10+
When I save any file in my project, my no. 1 concern is how fast the unit tests
11+
run.
12+
13+
Jest - From I save until I get a test result is measured in seconds. And that is
14+
just for the one single test case you get with a fresh CRA app.
15+
16+
Mocha - Runs in a few milliseconds.
17+
18+
And I don't really need any of the features that Jest provides.
19+
20+
## Usage
21+
622
Package is currently under the "@stroiman" scope. I wanted to see that this
723
works before pushing to global NPM package scope - to avoid polluting the global
824
scope with useless packages.

0 commit comments

Comments
 (0)