-
Notifications
You must be signed in to change notification settings - Fork 309
Description
Environment
vscode-jest version
: 5.2.3node -v
: 18.17.0npm -v
oryarn --version
: 9.6.7npm ls jest
ornpm ls react-scripts
(if you haven’t ejected): [email protected]- your vscode-jest settings if customized: default settings, just enabled coverage using vscode command
- Operating system: Ubuntu 22.04 (KDE)
Prerequisite
- are you able to run jest test from the command line? yes
- how do you run your tests from the command line? (for example:
npm run test
ornode_modules/.bin/jest
) usingnpm run test
, which looks like: jest --coverage --watch
Steps to Reproduce
I'm making a little project using Next.js 13.4.4
and Capacitor.JS ^5.0.4
(to make mobile apps). I recently installed jest following the next.js doc and jest doc. If i use my npm command, in a terminal, it is working well, but when i'm using the vscode extension, it runs tests, but I only see output in terminal view, nothing in the test results tab, and even in terminal output, there is no coverage, and in the command executed by the extension, I can see the --coverage twice. If I disable the coverage, it will still have a --coverage + a --no-coverage in the same command.
Expected Behavior
Showing test outputs in the dedicated tab, and show coverage if enabled
Actual Behavior
No output in test results tab, only in terminal tab, and there is no coverage, even if it's written in the command args.