feat(driver): prefer npm-global remediation with installer fallback
This commit is contained in:
parent
4a98ab2976
commit
8df567c327
4 changed files with 33 additions and 6 deletions
|
|
@ -55,6 +55,12 @@ test('resolve-bb fails with remediation when BB_REPO is invalid', async () => {
|
|||
assert.equal(result.source, 'env');
|
||||
assert.match(result.reason, /BB_REPO/i);
|
||||
assert.match(result.remediation, /Set BB_REPO/i);
|
||||
assert.match(result.remediation, /npm i -g beadboard/i);
|
||||
if (process.platform === 'win32') {
|
||||
assert.match(result.remediation, /install\.ps1/i);
|
||||
} else {
|
||||
assert.match(result.remediation, /install\.sh/i);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue