ken_nogi/NodeJS/node/node_modules/npm/lib/commands/install-ci-test.js
Kenichiro NOGI 88a402ce0f up
2026-07-10 18:13:30 +09: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