summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon Knox <simon@gitlab.com>2019-04-03 12:50:30 +0000
committerFatih Acet <acetfatih@gmail.com>2019-04-03 12:50:30 +0000
commitf54e4eb10f2b8171b9417e6533af99e80098d865 (patch)
tree0131ca154681c2450c13f546d9621843c09e8b24 /doc
parentbc696947fdf0423595cbbcf83b6dc94fb2d2290c (diff)
downloadgitlab-ce-f54e4eb10f2b8171b9417e6533af99e80098d865.tar.gz
Add docs for debugging Jest tests
Diffstat (limited to 'doc')
-rw-r--r--doc/development/testing_guide/frontend_testing.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/development/testing_guide/frontend_testing.md b/doc/development/testing_guide/frontend_testing.md
index 71c9637e72c..f58a8dcbcdc 100644
--- a/doc/development/testing_guide/frontend_testing.md
+++ b/doc/development/testing_guide/frontend_testing.md
@@ -26,6 +26,10 @@ It is not yet a requirement to use Jest. You can view the
[epic](https://gitlab.com/groups/gitlab-org/-/epics/873) of issues
we need to solve before being able to use Jest for all our needs.
+### Debugging Jest tests
+
+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
The default timeout for Jest is set in