2021-03-11 17:54:23 -05:00
|
|
|
const Install = require('./install.js')
|
2016-01-28 18:11:35 -08:00
|
|
|
|
2024-04-30 23:53:22 -07:00
|
|
|
// npm install-test
|
|
|
|
// Runs `npm install` and then runs `npm test`
|
2021-03-11 17:54:23 -05:00
|
|
|
class InstallTest extends Install {
|
2021-11-18 20:58:02 +00:00
|
|
|
static description = 'Install package(s) and run tests'
|
|
|
|
static name = 'install-test'
|
2016-01-28 18:11:35 -08:00
|
|
|
|
2023-01-16 22:38:23 -05:00
|
|
|
async exec (args) {
|
2021-11-04 20:42:47 +00:00
|
|
|
await this.npm.exec('install', args)
|
|
|
|
return this.npm.exec('test', [])
|
2021-03-04 17:40:28 -05:00
|
|
|
}
|
|
|
|
}
|
2024-04-30 23:53:22 -07:00
|
|
|
|
2021-03-04 17:40:28 -05:00
|
|
|
module.exports = InstallTest
|