Described how to configure jest tests in IntelliJ

Signed-off-by: bogdannechyporenko <bogdannechiporenko@gmail.com>
This commit is contained in:
bogdannechyporenko
2023-01-31 12:50:46 +01:00
parent e9a6508edb
commit 690905b78b
2 changed files with 14 additions and 11 deletions
+1 -11
View File
@@ -371,14 +371,4 @@ Note: wrapping in the test application **requires** you to do a `find()` or
# Debugging Jest Tests
Currently, debugging Jest tests using IntelliJ or `node-debugger` is possible
but can be
[problematic to set up.](https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000634564-Debugging-Jest-unit-tests)
It is possible, but you might spend a decent amount of time configuring your
IDE.
In most cases, we have found that using `console.log` works well.
Note: if your console.logs are not being displayed, focus your specific unit
test from the command line by running them like so `yarn test MyTest`.
You can find it [here](https://backstage.io/docs/local-dev/cli-build-system#debugging-jest-tests)