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>
16 lines
373 B
JavaScript
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
|