linux-china / vitest-jetbrains-plugin

Vitest JetBrains plugin
https://plugins.jetbrains.com/plugin/19220-vitest-runner
Apache License 2.0
52 stars 6 forks source link

Support for node v14 #26

Closed haassabine closed 2 years ago

haassabine commented 2 years ago

Hi, is it possible to support node version 14.x as well with this plugin? We would love to use this plugin, but cannot easily upgrade our node version yet.

The issue is currently, that your plugin runs the tests as: npm exec -- vitest run -t "Require Test" tests/unit/main.spec.ts

Which fails with under nodejs v.14:

Usage: npm where is one of: access, adduser, audit, bin, bugs, c, cache, ci, cit, clean-install, clean-install-test, completion, config, create, ddp, dedupe, deprecate, dist-tag, docs, doctor, edit, explore, fund, get, help, help-search, hook, i, init, install, install-ci-test, install-test, it, link, list, ln, login, logout, ls, org, outdated, owner, pack, ping, prefix, profile, prune, publish, rb, rebuild, repo, restart, root, run, run-script, s, se, search, set, shrinkwrap, star, stars, start, stop, t, team, test, token, tst, un, uninstall, unpublish, unstar, up, update, v, version, view, whoami npm -h quick help on npm -l display full usage info npm help search for help on npm help npm involved overview

The working version for node v.14 would be: npx vitest run -t "Require Test" tests/unit/main.spec.ts

Can you please add support for this?

linux-china commented 2 years ago

Please config Node v14 as following and try new attached version.

image

vitest-jetbrains-plugin-0.6.3.zip

haassabine commented 2 years ago

Works fine. Thank you