Project that recreates an issue writing integration tests that import modules that happen to reference $env/dynamic/private.
$env/dynamic/private
Run the tests to see results:
npm install npm run test:unit