mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 04:20:26 +02:00
update test inspect script
This commit is contained in:
@@ -70,7 +70,7 @@ Then you can rerun the tests with:
|
|||||||
yarn test
|
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.)
|
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",
|
"serve": "cd ./site && next",
|
||||||
"start": "npm-run-all --parallel --print-label watch serve",
|
"start": "npm-run-all --parallel --print-label watch serve",
|
||||||
"test": "mocha --require ./config/babel/register.cjs ./packages/*/test/index.js",
|
"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"
|
"watch": "yarn build:rollup --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Reference in New Issue
Block a user