PR-URL: https://github.com/nodejs/node/pull/62216 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
const Install = require('./install.js')
|
|
|
|
class InstallTest extends Install {
|
|
static description = 'Install package(s) and run tests'
|
|
static name = 'install-test'
|
|
|
|
async exec (args) {
|
|
await this.npm.exec('install', args)
|
|
return this.npm.exec('test', [])
|
|
}
|
|
}
|
|
|
|
module.exports = InstallTest
|