8000 vscode vitest extension doesn't find tests · Issue #9 · cometkim/rescript-vitest · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vscode vitest extension doesn't find tests #9

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

Open
jmagaram opened this issue Jan 24, 2023 · 2 comments
Open

vscode vitest extension doesn't find tests #9

jmagaram opened this issue Jan 24, 2023 · 2 comments

Comments

@jmagaram
Copy link
Contributor

I'm trying to use the vitest extension: https://marketplace.visualstudio.com/items?itemName=ZixuanChen.vitest-explorer
It doesn't find any tests even after including paths like this...

  "vitest.include": [
    "**/*.{test,spec}.bs.js",
    "**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"
  ],

The extension finds the files but shows no tests. Have you been able to get this to work? I'm guessing the problem is that the extension can't handle the rescript wrapper around the vitest code. If I change the .test.bs.js file to directly refer to describe and test in the vitest package it works.

@jmagaram
Copy link
Contributor Author

I've been investigating. Probably a weakness in the vitest extension or ReScript's ability to completely inline everything.

vitest-dev/vscode#127

@illusionalsagacity
Copy link
Contributor

FYI, I haven't had this issue lately (works on my machine 😅) and the linked issue is closed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0