This updates the way we invoke yarn to run the equivalent of sh -c "yarn jest" instead of sh -c "yarn" "jest". The latter version seems to be equivalent to a plain sh -c "yarn", which means every time we try to run yarn with a sub-command (to invoke tests, initialize package.json, add a dependency to package.json, etc.) we were just installing dependencies.
I'm guessing we originally missed this because cmd.exe /c "yarn" "jest" works on Windows (which is what @dynamite-bud used when implementing #120), and Wasmer Pack's CI was happy because running yarn by itself a bunch of times won't fail.
Context
When @dynamite-bud added JavaScript tests to his wasmerio/rustfft package (https://github.com/wasmerio/rustfft/pull/8), he noticed that none of the Jest tests were being run.
Checklist
[x] Is this a user-facing change? If so, update CHANGELOG.md
Description
This updates the way we invoke
yarn
to run the equivalent ofsh -c "yarn jest"
instead ofsh -c "yarn" "jest"
. The latter version seems to be equivalent to a plainsh -c "yarn"
, which means every time we try to runyarn
with a sub-command (to invoke tests, initializepackage.json
, add a dependency topackage.json
, etc.) we were just installing dependencies.I'm guessing we originally missed this because
cmd.exe /c "yarn" "jest"
works on Windows (which is what @dynamite-bud used when implementing #120), and Wasmer Pack's CI was happy because runningyarn
by itself a bunch of times won't fail.Context
When @dynamite-bud added JavaScript tests to his
wasmerio/rustfft
package (https://github.com/wasmerio/rustfft/pull/8), he noticed that none of the Jest tests were being run.Checklist
CHANGELOG.md