otter
otter copied to clipboard
[Feature]: change the way handling Package Manager Config on IT
Context
Today in IT, we need to target a local registry to download the current version of the packages to test.
To do so, we create (set config
commands) the .npmrc
and .yarnrc.yml
file within the folder containing the environment in which we process tests.
To avoid creating a Package Manager configuration in each project, we can set the configuration in a custom user configuration.
Currently npm
provide an option to set configuration in a custom User configuration but not yarn
which force the User configuration to be in ~/.yarnrc.yml
.
Proposal
A solution is to redifine the homedir variable at Node level for run of IT test.