Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blimmer committed Nov 25, 2024
1 parent f248539 commit f9e685b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ test('from a bun.lockb', () => {
const packageManager = PackageManager.fromLockFile('/path/to/bun.lockb');
expect(packageManager.lockFile).toEqual(LockFile.BUN);
expect(packageManager.argsSeparator).toBeUndefined();
expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile']);
expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile', '--backend', 'copyfile']);
expect(packageManager.runCommand).toEqual(['bun', 'run']);

expect(packageManager.runBinCommand('my-bin')).toBe('bun run my-bin');
});

test('from a bun.lockb with LogLevel.ERROR', () => {
const packageManager = PackageManager.fromLockFile('/path/to/bun.lockb', LogLevel.ERROR);
expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile', '--silent']);
expect(packageManager.installCommand).toEqual(['bun', 'install', '--frozen-lockfile', '--backend', 'copyfile', '--silent']);
});

test('defaults to NPM', () => {
Expand Down

0 comments on commit f9e685b

Please sign in to comment.