Skip to content
6 changes: 3 additions & 3 deletions src/cmds/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export default {
* @param {any} argv
*/
async handler (argv) {
// temporarily disable code coverage on node 18
if (argv.cov && process.version.startsWith('v18.')) {
console.warn(kleur.red('!!! Temporarily disabling code coverage\n')) // eslint-disable-line no-console
// temporarily disable code coverage on node targets running node 18
if (argv.cov && process.version.startsWith('v18.') && argv.target === 'node') {
console.warn(kleur.red('!!! Temporarily disabling code coverage - https://github.com/ipfs/aegir/issues/1206\n')) // eslint-disable-line no-console
delete argv.cov
}

Expand Down