fix "EXDEV: cross-device link not permitted, rename 'bin\starlit.exe' ->

'C:\npm\prefix\bin\starlit.exe'"
This commit is contained in:
alecmocatta
2022-06-16 12:44:34 +01:00
parent 87e2c92559
commit c8160d6ee1
2 changed files with 4 additions and 3 deletions

View File

@@ -47,6 +47,6 @@ describe('verifyAndPlaceBinary()', () => {
verifyAndPlaceBinary('command', './bin', callback);
expect(fs.renameSync).toHaveBeenCalledWith(path.join('bin', 'command'), path.sep + path.join('usr', 'local', 'bin', 'command'));
expect(fs.copyFileSync).toHaveBeenCalledWith(path.join('bin', 'command'), path.sep + path.join('usr', 'local', 'bin', 'command'));
});
});