nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.49k stars 162 forks source link

Tests assume `COREPACK_ENABLE_STRICT` unset #303

Closed rotu closed 1 year ago

rotu commented 1 year ago

In my shell profile, I export COREPACK_ENABLE_STRICT=0. This causes the test to fail, since the "should refuse to run a different package manager within a configured project" test assumes this environment variable is unset.

https://github.com/nodejs/corepack/blob/2bf76c9e29a59dee21e96cf6250a8cede59922e5/tests/main.test.ts#L262C28-L262C28

styfle commented 1 year ago

This should fix it https://github.com/nodejs/corepack/pull/304