Mi condición funciona, pero creo que hay una forma más elegante y breve de escribirlo:
if (this.filters.provider.length !== 1) { return true } else { if (this.filters.provider.includes('test')) { return false } return true }
return this.filters.provider.length !== 1 || !this.filters.provider.includes('test');
puedes usar un operador ternario como este:
return (this.filters.provider.length !== 1) ? true : this.filters.provider.includes('test') ? false : true;