Skip to content

[Feature Request] Add option to "flatten" the tree view #871

Open
@mojo2012

Description

@mojo2012

Environment

  1. vscode-jest version: 1.67.2
  2. node -v: v16.15.0
  3. npm -v: 8.5.5
  4. npm ls jest: ├─┬ [email protected]
    │ └── [email protected] deduped
    ├── [email protected]
    └─┬ [email protected]
    └── [email protected] deduped
  5. your vscode-jest settings if customized:
    • jest.jestCommandLine: -
    • jest.autoRun: off
  6. Operating system: macOS 12.4 (21F79)

Prerequisite

  • are you able to run jest test from the command line? yes
  • how do you run your tests from the command line? yes

Steps to Reproduce

  1. Add a spec file somewhere deeply nested in the project folder.
  2. open test explorer

Expected Behavior

Add an option to "flatten" the nested tree to only show a tree containing:

  • spec 1
    ** should do stuff
    ** should do another stuff
  • spec 2
    ** should do stuff again
    ** should not do stuff

Mind, that the actual file path to the specs is not shown in the test explorer!

Actual Behavior

Either we get a deeple nested tree structure to drill down or we only get a super-flat list. The later is not an option because it doesn't group the individual tests at all.

Bildschirmfoto 2022-05-25 um 10 44 42

Bildschirmfoto 2022-05-25 um 10 44 23

This extension has such a view: https://github.com/hbenl/vscode-test-explorer
(Unfortunately it has problems with typescript)

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