Skip to content

jest-decorated incorrectly displays tests #800

Open
@WeslyG

Description

@WeslyG

Environment

  1. vscode-jest version: 4.2.1
  2. node -v: v16.13.0
  3. npm -v or yarn --version: 1.22.17
  4. npm ls jest
├── [email protected]
└─┬ [email protected]
  └── [email protected] deduped
  1. your vscode-jest settings if customized:
"jest.autoRun": "off",
  "jest.testExplorer": {
    "enabled": true,
    "showClassicStatus": true,
    "showInlineError": true
  }
  1. Operating system:
    windows11 with wsl2
cat /etc/os-release 
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2021.3"
VERSION_ID="2021.3"
VERSION_CODENAME="kali-rolling"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

Background

I use https://github.com/vitalishapovalov/jest-decorated to write my tests in the form of decorators. However, vscode-jest does not want to display my tests correctly in the source code text.

Prerequisite

  • see screen

Steps to Reproduce

see my repo for detail https://github.com/WeslyG/vscode-jest-issue

Expected Behavior

I expect that the green jackdaw in the test using decorators will be on line 7, not on line 14

Actual Behavior

The green test jackdaw flies down to the end of the file

image

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