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

How do I use this after installing it? #180

Closed
theronic opened this issue Sep 21, 2023 · 6 comments · Fixed by #332
Closed

How do I use this after installing it? #180

theronic opened this issue Sep 21, 2023 · 6 comments · Fixed by #332
Labels
documentation Improvements or additions to documentation p2-nice-to-have Not breaking anything but nice to have (priority)

Comments

@theronic
Copy link

What do I do next? I can run pnpm run vitest in terminal and it works, but there is no documentation on how to get this after installing it.

@theronic theronic added the p2-nice-to-have Not breaking anything but nice to have (priority) label Sep 21, 2023
@MilanKovacic MilanKovacic added the documentation Improvements or additions to documentation label Feb 15, 2024
@ffMathy
Copy link
Collaborator

ffMathy commented Feb 18, 2024

What is not working for you? When you go the test explorer UI, what do you see?

@wickedw
Copy link

wickedw commented Feb 20, 2024

Hi, I have just installed it, just feeding back, might help the docs, might not.

I get nothing in my test explorer.

I am new to node dev, so bear with me, so not sure if my project classes as mono repo, it has a seperate npm / project structure in each folder, /api, /web etc.

I have /api/ with a vitest.config.ts and can run all my tests fine (they are in api/tests/vitest/.test.) from the command line with vitest, just looked to see if could get a UX runner installed.
I have /web/ with other code etc

I see the link to the a workspace setup at the bottom of the docs, but not sure if I need to work with that?

I use httpYac in the same /api directory and that shows tests no issue in the explorer.

UPDATE:

I used "Add folder to workspace" in vs (/api folder) and my tests showed up, but when running a test I get -

Test result not found.

At least some progress, but will have leave now and use command line, thanks.

@ffMathy
Copy link
Collaborator

ffMathy commented Feb 20, 2024

@wickedw did you see that a new extension was published, and the old one was deprecated a couple of days ago? Can you try the new one?

@WesleyKapow
Copy link

I've been hitting this to ever since I moved away from the deprecated extension. No tests found. Vitest is working though as I can run npx vitest watch just fine. I'm working with a monorepo and I tried setting up a workspace file but that didn't seem to help.

Screenshot 2024-03-08 at 12 40 04 PM

@3ddbz
Copy link

3ddbz commented Mar 15, 2024

我遇到了同样的问题,vscode 的日志是这样的:
屏幕截图 2024-03-15 144032
我在package.json 中增加了一行"vitest":"vitest" 就可以显示了:
{ //... "scripts": { "dev": "vite", "build": "vite build", "test": "vitest" } //... }
改为
{ //... "scripts": { "dev": "vite", "build": "vite build", "test": "vitest", "vitest":"vitest" } //... }

@MilanKovacic
Copy link
Collaborator

Usage section has been added to the readme. Feedback is welcome.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants