mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-13 18:53:59 +02:00
fix contributing docs test commands, closes #422
This commit is contained in:
@@ -47,10 +47,10 @@ npm install
|
|||||||
Which will also compile the source files. Then run the tests with:
|
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:
|
To keep the source rebuilding on every file change, you need to run an additional watching command:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user