blob: 76c6f367dd3c8117b54dd30834405b2421ba2d56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// npm install-test
// Runs `npm install` and then runs `npm test`
const Install = require('./install.js')
class InstallTest extends Install {
/* 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
|