Skip to content

Commit

Permalink
test(bun): increase Bun coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
coopbri committed Oct 31, 2023
1 parent 5f84d6d commit ef82f9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/utils/getTestCommand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ describe('getTestCommand', () => {
).toBe(
'pnpx jest --ci --json --coverage --testLocationInResults --outputFile="report.json"'
);

expect(
await getTestCommand('bunx jest', 'report.json', undefined)
).toBe(
'bunx jest --ci --json --coverage --testLocationInResults --outputFile="report.json"'
);
});

it('should add double hyphens for npm and pnpm', async () => {
Expand Down
1 change: 1 addition & 0 deletions tests/utils/isOldScript.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ describe('isOldScript', () => {

expect(await isOldScript('npx jest', undefined)).toBe(false);
expect(await isOldScript('pnpx jest', undefined)).toBe(false);
expect(await isOldScript('bunx jest', undefined)).toBe(false);
expect(await isOldScript('yarn jest', undefined)).toBe(false);
expect(await isOldScript('npm test', undefined)).toBe(false);
expect(await isOldScript('pnpm test', undefined)).toBe(false);
Expand Down

0 comments on commit ef82f9c

Please sign in to comment.