1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-14 18:32:01 +02:00

fix contributing docs test commands, closes #422

This commit is contained in:
Ian Storm Taylor 2016-11-15 12:26:48 -08:00
parent e030deaa78
commit 80cdbdb980

View File

@ -47,10 +47,10 @@ npm install
Which will also compile the source files. Then run the tests with:
```
npm test
npm run tests
```
If you need to debug something, you can add a `debugger` line to the source, and then run `npm test debug`. Or, if you only want to run a specific test or tests, you can run `npm test -- --fgrep "match this string"` flag which will filter the tests being run.
If you need to debug something, you can add a `debugger` line to the source, and then run `npm run tests debug`. Or, if you only want to run a specific test or tests, you can run `npm run tests -- --fgrep "match this string"` flag which will filter the tests being run.
To keep the source rebuilding on every file change, you need to run an additional watching command: