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