summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2019-04-02 16:24:26 +1100
committerSimon Knox <psimyn@gmail.com>2019-04-02 17:27:12 +1100
commit651bf120fca2975e96e32dfbeedf9604c27e380e (patch)
tree860e101e8fc4f62d63dbf02a323603330a935420 /doc
parentf92977960256c99dcfc21a13bc9d6f671f546cb0 (diff)
downloadgitlab-ce-docs-jest-debug.tar.gz
Add jest debug script and update docsdocs-jest-debug
Diffstat (limited to 'doc')
-rw-r--r--doc/development/testing_guide/frontend_testing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/testing_guide/frontend_testing.md b/doc/development/testing_guide/frontend_testing.md
index 3cee301465d..f58a8dcbcdc 100644
--- a/doc/development/testing_guide/frontend_testing.md
+++ b/doc/development/testing_guide/frontend_testing.md
@@ -28,7 +28,7 @@ we need to solve before being able to use Jest for all our needs.
### Debugging Jest tests
-The [Jest docs](https://jestjs.io/docs/en/troubleshooting#tests-are-failing-and-you-don-t-know-why) show how to debug tests. We also need to pass `BABEL_ENV=jest` environment variable, e.g. `BABEL_ENV=jest node --inspect-brk node_modules/.bin/jest --runInBand`
+Running `yarn jest-debug` will run Jest in debug mode, allowing you to debug/inspect as described in the [Jest docs](https://jestjs.io/docs/en/troubleshooting#tests-are-failing-and-you-don-t-know-why).
### Timeout error