1
0
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:
Ian Storm Taylor 2019-12-03 00:07:11 -05:00
parent ed2b84ca7a
commit 20da67e691
2 changed files with 2 additions and 2 deletions

View File

@ -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.)

View File

@ -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": {