vscode-jest-runner icon indicating copy to clipboard operation
vscode-jest-runner copied to clipboard

Instructions to use extension on a CRA project without adding files to the source code

Open arshadhasan opened this issue 4 years ago • 2 comments

The extension does not work with CRA. Adding these commands to settings.json makes both Run and Debug to work.

arshadhasan avatar Jun 23 '21 17:06 arshadhasan

You are saying it does not work with CRA, but I'm pretty sure it does work with the provided information.

Didn't it work for you when putting 'npm run test --' in the jest.command?

Your PR also removes important information from the Readme. Which is needed to debug JSX/TSX. Even if this is not connected to the extension. Many don't know it and will blame the extension.

firsttris avatar Jun 24 '21 05:06 firsttris

Run works after adding "jestrunner.jestCommand": "npm run test --", same instructions are in the commit.

Debug was not working for me even after adding babel.config.js and jest config. Also, this solution does not add new files to the source code.

I can leave in info about babel and jest config as another option.

arshadhasan avatar Jun 24 '21 07:06 arshadhasan