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
This is a new issue to aggregate existing issues for supporting create-react-app and react-scripts. The latest node LTS version doesn't install Jest where it's currently expected (in src/helpers.ts). This seems to be the cause of #39, #41, #113, and #125.
--
Environment
node -v: 8.9.0
npm -v: 5.5.1
npm ls react-scripts (if you haven’t ejected): N/A
The create-react-appUser Guide has a section for Updating to New Releases. Instead of installing newer versions of react-scripts, I've used this approach to bootstrap app with each supported version (>= v1.0.0) and confirm the extension doesn't work.
I'm getting the Unexpected token error on JSX using react-scripts 1.1.4. Setting jest.pathToJest to npm test -- as a workaround fixes it, but shouldn't it be automatic?
@nickmccurdy thanks for the workaround. @orta this still seems to be an issue BTW, the test runner is using jest directly, instead of going through react-scripts.
legend1202
pushed a commit
to legend1202/vscode-jest
that referenced
this issue
Jun 18, 2023
This is a new issue to aggregate existing issues for supporting
create-react-app
andreact-scripts
. The latest node LTS version doesn't install Jest where it's currently expected (in src/helpers.ts). This seems to be the cause of #39, #41, #113, and #125.--
Environment
node -v
: 8.9.0npm -v
: 5.5.1npm ls react-scripts
(if you haven’t ejected): N/AOperating system: Windows 7
Extension version: v2.4.1 as of 23af6f0
Steps to Reproduce
The
create-react-app
User Guide has a section for Updating to New Releases. Instead of installing newer versions ofreact-scripts
, I've used this approach to bootstrap app with each supported version (>= v1.0.0) and confirm the extension doesn't work.Expected Behavior
The extension should detect the bootstrapped app.
Actual Behavior
An "Unexpected token" error is thrown when Jest runs without detecting this has been bootstrapped.
Suggested Changes
react-scripts
innode_modules/.bin/react-scripts(.cmd)?
The text was updated successfully, but these errors were encountered: