Skip to content

Test setup broken with npm or latest pnpm version #34

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
hpawe01 opened this issue Nov 22, 2024 · 0 comments
Open

Test setup broken with npm or latest pnpm version #34

hpawe01 opened this issue Nov 22, 2024 · 0 comments

Comments

@hpawe01
Copy link

hpawe01 commented Nov 22, 2024

At the moment it is not possible to contribute larger changes to this project because if I follow the installation steps in CONTRIBUTION.md I end up with a version where I cannot run the tests. npm test results in:

FAIL  src/extension.test.ts [ src/extension.test.ts ]
Error: Failed to load url vscode (resolved id: vscode) in C:/work/projects/vscode-npm-outdated/src/extension.test.ts. Does the file exist?

The following way works:

  • Install pnpm but at version 7 (the latest version doesn't work as well): npm -g i pnpm@7
  • Install packages with pnpm i (to make this work, I had to remove the node_modules folder that was created by the previous npm i)
  • Run tests with npm test

I didn't looked deeper into the reasons why this way works - maybe pnpm v7 resolves the vscode imports another way?

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

1 participant