11cb0ef41Sopenharmony_ci// npm install-ci-test 21cb0ef41Sopenharmony_ci// Runs `npm ci` and then runs `npm test` 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciconst CI = require('./ci.js') 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciclass InstallCITest extends CI { 71cb0ef41Sopenharmony_ci static description = 'Install a project with a clean slate and run tests' 81cb0ef41Sopenharmony_ci static name = 'install-ci-test' 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci async exec (args) { 111cb0ef41Sopenharmony_ci await this.npm.exec('ci', args) 121cb0ef41Sopenharmony_ci return this.npm.exec('test', []) 131cb0ef41Sopenharmony_ci } 141cb0ef41Sopenharmony_ci} 151cb0ef41Sopenharmony_cimodule.exports = InstallCITest 16