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

test.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 06138ac00a3be74947b71665a2ec1a5ef3075128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module.exports = test

const testCmd = require('./utils/lifecycle-cmd.js')('test')

test.usage = testCmd.usage

function test (args, cb) {
  testCmd(args, function (er) {
    if (!er) return cb()
    if (er.code === 'ELIFECYCLE') {
      return cb('Test failed.  See above for more details.')
    }
    return cb(er)
  })
}