Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-t not matching full name #838

Closed
6 tasks done
holtwick opened this issue Feb 23, 2022 · 1 comment
Closed
6 tasks done

-t not matching full name #838

holtwick opened this issue Feb 23, 2022 · 1 comment

Comments

@holtwick
Copy link

holtwick commented Feb 23, 2022

Describe the bug

Jest defines the test name as: "the full name, which is a combination of the test name and all its surrounding describe blocks". Vite only uses the the test name. This results in problems e.g. when using VSCode extension https://github.com/firsttris/vscode-jest-runner

Reproduction

Use the standard example and run vitest -t "suite name foo". It would work with Jest.

System Info

System:
    OS: macOS 12.2.1
    CPU: (8) arm64 Apple M1
    Memory: 92.28 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.4.0 - /opt/homebrew/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.4.1 - /opt/homebrew/bin/npm
  Browsers:
    Edge: 97.0.1072.69
    Firefox: 97.0.1
    Safari: 15.3
    Safari Technology Preview: 15.4

Used Package Manager

pnpm

Validations

@holtwick
Copy link
Author

It works! Thanks so much @patak-dev that was the last brick missing eliminating Jest completely from some of my projects ;)

@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants