nodejs/deps/npm/lib/commands/install-test.js
npm CLI robot c923ce7414
deps: upgrade npm to 10.7.0
PR-URL: https://github.com/nodejs/node/pull/52767
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2024-05-01 06:53:22 +00:00

16 lines
370 B
JavaScript

const Install = require('./install.js')
// npm install-test
// Runs `npm install` and then runs `npm test`
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