MINI MINI MANI MO

Path : /opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/lib/
File Upload :
Current File : //opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/lib/install-test.js

// npm install-test
// Runs `npm install` and then runs `npm test`

const Install = require('./install.js')

class InstallTest extends Install {
  static get description () {
    return 'Install package(s) and run tests'
  }

  /* istanbul ignore next - see test/lib/load-all-commands.js */
  static get name () {
    return 'install-test'
  }

  exec (args, cb) {
    this.npm.commands.install(args, (er) => {
      if (er)
        return cb(er)
      this.npm.commands.test([], cb)
    })
  }
}
module.exports = InstallTest

OHA YOOOO