Skip to content

No output in Test Results tab, and no coverage when coverage enabled #1051

@navalex

Description

@navalex

Environment

  1. vscode-jest version: 5.2.3
  2. node -v: 18.17.0
  3. npm -v or yarn --version: 9.6.7
  4. npm ls jest or npm ls react-scripts (if you haven’t ejected): [email protected]
  5. your vscode-jest settings if customized: default settings, just enabled coverage using vscode command
  6. 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 or node_modules/.bin/jest) using npm 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions