nodejs/deps/npm/lib/commands/install-ci-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
373 B
JavaScript

const CI = require('./ci.js')
// npm install-ci-test
// Runs `npm ci` and then runs `npm test`
class InstallCITest extends CI {
static description = 'Install a project with a clean slate and run tests'
static name = 'install-ci-test'
async exec (args) {
await this.npm.exec('ci', args)
return this.npm.exec('test', [])
}
}
module.exports = InstallCITest