-
Notifications
You must be signed in to change notification settings - Fork 693
Transition test runner from Mocha to Bun #2484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
18
commits into
develop
Choose a base branch
from
copilot/transition-mocha-to-jest
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dceb244
Initial plan
Copilot 2deec04
Plan: migrate Mocha to Jest with --runInBand
Copilot 173d0a3
fix: migrate Mocha to Jest with --runInBand, fix all cross-file depen…
Copilot 43d0f21
refactor: simplify test1526 to use expect().toThrow() pattern
Copilot 43769da
refactor: move skip-logic into test files, remove mocha, fix test624 …
Copilot 2fb30f0
refactor: minimize describe body changes - move it.todo outside as te…
Copilot 15cfb96
refactor: restore if(false) for test016a/160, use test.skip for empty…
Copilot 5c39f85
Switch test runner from Jest to Bun (minimal test file changes)
Copilot 503f5ad
fix: convert alasql(function(){/* SQL */}) pattern to template litera…
Copilot 484d2da
chore: regenerate yarn.lock to fix frozen-lockfile CI failure
Copilot bde2b7b
Merge branch 'develop' into copilot/transition-mocha-to-jest
mathiasrw 1dad863
feat: add --dots reporter to bun test command
Copilot ddaaf1a
Merge branch 'develop' into copilot/transition-mocha-to-jest
mathiasrw 53020c9
style: fix prettier formatting in bun-setup.js, test257.js, test291.j…
Copilot ab68133
ci: remove bun from devDeps, install via setup-bun action in CI; fix …
Copilot 69ee8fd
fix: make csvStringToNumber option work for direct CSV SELECT; fix te…
Copilot a7c8427
fix: remove this.timeout() from test2112.js test C (missed in earlier…
Copilot 370a2a7
fix: upgrade axios resolution to 1.16.1 to resolve security vulnerabi…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
| // Provide Mocha-compatible before/after aliases for Bun's test runner. | ||
| // In Bun's preload context, beforeAll/afterAll are in the module scope | ||
| // (not on globalThis), so we define delegating wrappers on globalThis. | ||
| Object.defineProperty(globalThis, 'before', { | ||
| value: function (...args) { | ||
| return beforeAll(...args); | ||
| }, | ||
| configurable: true, | ||
| writable: true, | ||
| }); | ||
| Object.defineProperty(globalThis, 'after', { | ||
| value: function (...args) { | ||
| return afterAll(...args); | ||
| }, | ||
| configurable: true, | ||
| writable: true, | ||
| }); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.