Welcome to mirror list, hosted at ThFree Co, Russian Federation.

install-test.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d5664119df5ce2f72818dbccef8d0c107f62a449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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