Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t.is(globalDirectory.npm.prefix, '/usr/local/lib') is failing from test.js #25

Open
ramnathnayak-ibm opened this issue Oct 28, 2024 · 0 comments

Comments

@ramnathnayak-ibm
Copy link

When I run the tests for this I am getting this error.
I am running this package inside a container. Am I facing this error because of that?

  reload package and get npm.prefix with env

  test.js:41

   40:   const {default: globalDirectory} = await importFresh('./index.js');
   41:   t.is(globalDirectory.npm.prefix, '/usr/local/lib');
   42: });

  Difference (- actual, + expected):

  - '/root/.nvm/versions/node/v20.18.0'
  + '/usr/local/lib'

  › file://test.js:41:4

  ─

  1 test failed

If its because of that, Can I possibly skip this particular test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant