Adding support for the default package name in Berry (package.tgz) is the simplest fix.
Alternatively, we could detect the yarn lineage and use --filename (classic) or --out (berry) to use the same package name across clients.
Fixes #43
I haven't used jest before, so getting the tests to work has been a chore. I was able to adapt your get-npm-client test to work for get-yarn-lineage, but I don't know the right way to mock a local module to update the get-npm-client test.
Adding support for the default package name in Berry (
package.tgz
) is the simplest fix.Alternatively, we could detect the yarn lineage and use
--filename
(classic) or--out
(berry) to use the same package name across clients.Fixes #43
I haven't used jest before, so getting the tests to work has been a chore. I was able to adapt your
get-npm-client
test to work forget-yarn-lineage
, but I don't know the right way to mock a local module to update theget-npm-client
test.