Ravi Srinivasan
2019-02-06 96b7f8d3730b2079da07056ffa96271290560017
3-revenge-of-the-automated-testing/README.md
@@ -14,7 +14,7 @@
The TDD cycle can be illustrated with the following diagram:
![TDD-diagram](../images/exercise3/TDD-lifecycle.jpg)
![TDD-diagram](../images/exercise3/TDD_Lifecycle.png)
### The TDD Cycle
@@ -412,6 +412,19 @@
npm run test -- --watch
```
> NOTE: You may see an `ENOSPC` error on Linux systems like the following:
```bash
ERROR jest exited with code 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! todolist-fe@1.0.0 test: `vue-cli-service test "--watch"`
npm ERR! Exit status 1
```
To fix this error, run the following command:
```bash
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
```
3. All the tests should be passing when we begin. If `No tests found related to files changed since last commit` is on show; hit `a` on the terminal to re-run `all` tests.
![rerun-all](../images/exercise3/rerun-all.png)