File: global-hooks.js

package info (click to toggle)
node-registry-auth-token 5.0.1%2B~cs2.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 548 kB
  • sloc: javascript: 1,417; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 183 bytes parent folder | download
1
2
3
4
5
6
7
exports.mochaHooks = {
  beforeEach () {
    Object.keys(process.env)
      .filter(envKey => /^npm_config_/i.test(envKey))
      .forEach(envKey => delete process.env[envKey])
  }
}