You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
I'm trying to use this extension with a CRA typescript project. I can run the tests, but I can not debug them. I think this is because CRA installs the jest binary inside the ./node_modules/react-scripts/node_modules/.bin path while the extension expects the binary on the ./node_modeuls/.bin path. I saw that in the getting started guide the following is stated:
Currently limited to Jest being available from the ./node_modules/.bin/jest path from the VS Code workspace directory. We are working to make this more flexible.
To my understanding, it is therefore not possible to point the extension to the correct Jest binary. I, therefore, tried installing Jest inside the node_modules folder, but the extension failed with a 1 exit code without writing anything to the Jest Test Explorer Log.
I can debug my tests using the vscode-jest extension, but I would like to use your extension since it is more lightweight. Therefore, I wondered if there is a way to debug CRA typescript tests using your extension or if #41 still needs to be completed to support this (see #40 (comment)).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use this extension with a CRA typescript project. I can run the tests, but I can not debug them. I think this is because CRA installs the jest binary inside the
./node_modules/react-scripts/node_modules/.bin
path while the extension expects the binary on the./node_modeuls/.bin
path. I saw that in the getting started guide the following is stated:To my understanding, it is therefore not possible to point the extension to the correct Jest binary. I, therefore, tried installing Jest inside the
node_modules
folder, but the extension failed with a1
exit code without writing anything to theJest Test Explorer Log
.I can debug my tests using the vscode-jest extension, but I would like to use your extension since it is more lightweight. Therefore, I wondered if there is a way to debug CRA typescript tests using your extension or if #41 still needs to be completed to support this (see #40 (comment)).
How to reproduce
App.test.tsx
test.node_modules
folder.1
exit code.Beta Was this translation helpful? Give feedback.
All reactions