Skip to content

vscode vitest extension doesn't find tests #9

@jmagaram

Description

@jmagaram

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions