cockpit-source/.tools/node20/node-v20.19.0-win-x64/node_modules/npm/lib/commands/install-ci-test.js
2026-04-02 14:12:43 +08: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