mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-20 13:22:04 +02:00
update test inspect script
This commit is contained in:
parent
ed2b84ca7a
commit
20da67e691
@ -70,7 +70,7 @@ Then you can rerun the tests with:
|
||||
yarn test
|
||||
```
|
||||
|
||||
If you need to debug something, you can add a `debugger` line to the source, and then run `yarn test:debug`.
|
||||
If you need to debug something, you can add a `debugger` line to the source, and then run `yarn test:inspect`.
|
||||
|
||||
If you only want to run a specific test or tests, you can run `yarn test --fgrep="slate-react rendering"` flag which will filter the tests being run by grepping for the string in each test. (This is a Mocha flag that gets passed through.)
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
"serve": "cd ./site && next",
|
||||
"start": "npm-run-all --parallel --print-label watch serve",
|
||||
"test": "mocha --require ./config/babel/register.cjs ./packages/*/test/index.js",
|
||||
"test:debug": "mocha debug --require ./config/babel/register.cjs ./packages/*/test/index.js",
|
||||
"test:inspect": "yarn test --inspect-brk",
|
||||
"watch": "yarn build:rollup --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user