Skip to content

Commit

Permalink
Merge pull request #8825 from hiroppy/feature/modify-readme-of-tests
Browse files Browse the repository at this point in the history
test: modify styles and typo of README
  • Loading branch information
sokra committed Feb 25, 2019
2 parents 95291e8 + 66bfea6 commit 6c036f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/README.md
Expand Up @@ -52,14 +52,14 @@ Basically you don't need to write any expected behaviors your self. The assumpti

Please follow the approach described bellow:

* write your test code in ```statsCases/``` folder by creating a separate folder for it, for example
```statsCases/some-file-import-stats/index.js```
```
import(./someModule);
* write your test code in `statsCases/` folder by creating a separate folder for it, for example `statsCases/some-file-import-stats/index.js`

```javascript
import(./someModule);
```
** dont's forget the ```webpack.config.js```
* don't forget the `webpack.config.js`
* run the test
* jest will automatically add the output from your test code to ```StatsTestCases.test.js.snap``` and you can always check your results there
* jest will automatically add the output from your test code to `StatsTestCases.test.js.snap` and you can always check your results there
* Next time test will run -> runner will compare results against your output written to snapshot previously

You can read more about SnapShot testing [right here](https://jestjs.io/docs/snapshot-testing)
Expand Down

0 comments on commit 6c036f6

Please sign in to comment.