diff --git a/Contributing.md b/Contributing.md index 1ecd37e4d..733e071ee 100644 --- a/Contributing.md +++ b/Contributing.md @@ -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.) diff --git a/package.json b/package.json index eaa2ed63e..63fd95949 100644 --- a/package.json +++ b/package.json @@ -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": {