-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run node tests with bun using env var `NODE_EXEC=bun` --------- Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
- Loading branch information
1 parent
58f9c4d
commit 73085b7
Showing
5 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { execa } from 'execa' | ||
|
||
describe('bun', function () { | ||
// slow CI is slow | ||
this.timeout(540000) | ||
this.slow(60000) | ||
|
||
it('should match output', async () => { | ||
await execa('./bin/test-node-example.js', [ | ||
'./test/fixtures/node/match-output.spec.js' | ||
], { | ||
stdio: 'inherit', | ||
env: { | ||
NODE_EXEC: 'bun' | ||
} | ||
}) | ||
}) | ||
|
||
it('should wait for output', async () => { | ||
await execa('./bin/test-node-example.js', [ | ||
'./test/fixtures/node/wait-for-output.spec.js' | ||
], { | ||
stdio: 'inherit', | ||
env: { | ||
NODE_EXEC: 'bun' | ||
} | ||
}) | ||
}) | ||
|
||
it('should test multiple files', async () => { | ||
await execa('./bin/test-node-example.js', [ | ||
'./test/fixtures/node/wait-for-output.spec.js', | ||
'./test/fixtures/node/match-output.spec.js' | ||
], { | ||
stdio: 'inherit', | ||
env: { | ||
NODE_EXEC: 'bun' | ||
} | ||
}) | ||
}) | ||
}) |