You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you read the CONTRIBUTING guide on posting bugs, and CODE_OF_CONDUCT?
yes I read the things
This issue exists in the latest tap version
I am using the latest tap
Description
There are two issues in the src/test/scripts/build.mts that lead to being unable to generate the test class on Windows:
The call to npm run prepare fails silently if it fails
On platforms that do not have a literal npm available on the path (i.e. Windows, which has a npm.cmd instead), the script fails with a ENOENT, which is never shown to the user
Because a) the fail is silent and b) there is an existing test-built in the packages distributed on npm, this leads to the user being able to run tests but unable to install 3rd-party plugins.
The fixes are respectively:
Add a check on the result of spawnSync and fail if the script if something happens
Use cross-spawn instead of Node's spawn, or manually add a .cmd if on Windows
Reproduction
Main symptom:
On Windows Install a plugin via your package manager, add it to your config manually
Is there an existing issue for this?
Have you read the
CONTRIBUTING
guide on posting bugs, andCODE_OF_CONDUCT
?This issue exists in the latest tap version
Description
There are two issues in the
src/test/scripts/build.mts
that lead to being unable to generate the test class on Windows:npm run prepare
fails silently if it failsnpm
available on the path (i.e. Windows, which has anpm.cmd
instead), the script fails with a ENOENT, which is never shown to the userBecause a) the fail is silent and b) there is an existing test-built in the packages distributed on npm, this leads to the user being able to run tests but unable to install 3rd-party plugins.
The fixes are respectively:
spawnSync
and fail if the script if something happenscross-spawn
instead of Node's spawn, or manually add a.cmd
if on WindowsReproduction
Main symptom:
tap plugin add
due to a separate issue ([BUG] Cannottap plugin add
on Windows #989)tap build
console.log(t.pluginSignature)
in a test fileYour plugin will not be there.
Environment
On Windows, latest tap
The text was updated successfully, but these errors were encountered: