vitest-dev / vitest-dev/vscode

Monorepo instructions are unclear, samples not working

Open
#81 28 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feat: workspace p2-nice-to-have
Dominant language
TypeScript
Stars
924
Forks
122
Avg merge
1d 14h
Merged PRs (30d)
6

Description

Describe the bug
Currently, there is (some) support for monorepos, but how to actually get extension working for monorepos is unclear.

The monorepo examples in /samples don't work out of the box as well.

To Reproduce
Steps to reproduce the behavior on the example project:

  1. Clone this repository
  2. Open samples/monorepo in vscode
  3. Install the extension
  4. Run pnpm install
  5. Run all tests from the extension

Expected behavior
The tests should run successfully.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2022-09-06 at 16 45 43

Environment

(Paste info.txt content generated by the example project)

{
  "System": {
    "OS": "macOS 12.3.1"
  },
  "Binaries": {
    "Node": {
      "version": "16.14.0",
      "path": "~/.nodenv/versions/16.14.0/bin/node"
    },
    "Yarn": {
      "version": "1.22.15",
      "path": "~/.nodenv/versions/16.14.0/bin/yarn"
    },
    "npm": {
      "version": "8.3.1",
      "path": "~/.nodenv/versions/16.14.0/bin/npm"
    }
  },
  "IDEs": {
    "VSCode": {
      "version": "1.70.2",
      "path": "/opt/homebrew/bin/code"
    }
  },
  "npmPackages": {
    "vite": {
      "installed": "2.9.15",
      "wanted": "^2.9.9"
    },
    "vitest": {
      "installed": "0.12.10",
      "wanted": "^0.12.6"
    }
  }
}

Additional context
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by opening /samples/monorepo in VS Code, following the listed reproduction steps, and comparing it with the linked vitest-ext-basic-example project. Run pnpm install and all tests from the extension to identify why the sample does not work out of the box. Done means the monorepo instructions are clear and the sample tests run successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.