Skip to content

(bun-vscode) "Run tests" button does not has the same behavior as bun test #25797

@Sayrix

Description

@Sayrix

What version of Bun is running?

1.3.4+5eb2145b3

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

The "Run tests" button of the Bun VSCode extension does not has the same behavior as typing bun test . or bun test in the CLI.

Run tests executes the command

bun test .\__tests__\check_jest.test.ts .\__tests__\check_spyOn_esm.test.ts .\__tests__\check_jest_mock.test.ts .\__tests__\unit\pickHelpfulHint.test.ts .\__tests__\unit\balance.cmd.test.ts .\__tests__\unit\blackjack.test.ts .\__tests__\unit\blackjackImage.test.ts .\__tests__\unit\blackjackShift.test.ts .\__tests__\unit\waitingAction.test.ts .\__tests__\unit\waitingConfirm.test.ts .\__tests__\unit\versionHash.test.ts .\__tests__\unit\utilsDev.test.ts .\__tests__\unit\apiNodes.test.ts .\__tests__\unit\tradeIdentify.test.ts .\__tests__\unit\openTradeSelect.test.ts .\__tests__\unit\sendRecoveryToken.test.ts .\__tests__\unit\createTradeThread.test.ts .\__tests__\unit\openTradeCmd.test.ts .\__tests__\unit\tradeIdentifyReset.test.ts .\__tests__\unit\dismissMessage.test.ts .\__tests__\unit\tradeIdentifyConfirm.test.ts .\__tests__\unit\checkBothAnswered.test.ts .\__tests__\unit\reduceAmountModal.test.ts .\__tests__\unit\useSavedAddress.button.test.ts .\__tests__\unit\reduceAmountMessage.test.ts .\__tests__\unit\reduceAmountButton.test.ts .\__tests__\unit\solSendMoney.test.ts .\__tests__\unit\debug_spy.test.ts .\__tests__\unit\getQrCode.test.ts .\__tests__\unit\waitingReceive.test.ts .\__tests__\unit\utils.test.ts .\__tests__\unit\updatePoints.test.ts .\__tests__\unit\updateAmountUSDCoverage.test.ts .\__tests__\unit\updateAmountUSD.test.ts .\__tests__\unit\tradeHelpers.test.ts .\__tests__\unit\tip.cmd.test.ts .\__tests__\unit\timestamps.test.ts .\__tests__\unit\termsOfService.test.ts .\__tests__\unit\recoveryToken.test.ts .\__tests__\unit\plinkoRandom.test.ts .\__tests__\unit\plinko.test.ts .\__tests__\unit\mines.test.ts .\__tests__\unit\finishTradeReferral.test.ts .\__tests__\unit\finishTradeCoverage.test.ts .\__tests__\unit\finishTrade.test.ts .\__tests__\unit\finishCanceledTradeCoverage.test.ts .\__tests__\unit\finishCanceledTrade.test.ts .\__tests__\unit\explorerUrls.test.ts .\__tests__\unit\discordUtils.test.ts .\__tests__\unit\deploySlashCommands.test.ts .\__tests__\unit\createTranscript.test.ts .\__tests__\unit\config.test.ts .\__tests__\unit\coinflip.test.ts .\__tests__\unit\coinflip.cmd.test.ts .\__tests__\unit\addressValidation.test.ts
4 tests skipped:
» updatePoints > adds points if user exists and has points
» updatePoints > removes points if user exists and has points (negative value)
» finishTrade Referral > does not reward if join_source_type is not 5
» finishTrade Referral > does not reward if referred user has >= 10 trades


14 tests failed:
✗ utils/index > explorer > returns correct LTC mainnet explorer URL
✗ utils/index > explorer > returns correct BTC mainnet explorer URL
✗ utils/index > explorer > returns correct ETH mainnet explorer URL
✗ utils/index > explorer > returns correct BNB mainnet explorer URL
✗ utils/index > explorer > returns correct SOL mainnet explorer URL
✗ utils/index > explorer > handles ETH token variations (USDT ERC-20, USDC ERC-20)
✗ utils/index > explorer > handles SOL token variations (USDT SOL, USDC SOL)
✗ utils/index > explorer > handles BNB token variations (USDT BEP-20, USDC BEP-20)
✗ utils/index > explorer > returns undefined for unknown crypto
✗ updateAmountUSD > _ (single update) > updates the message with new USD amounts
✗ updateAmountUSD > _ (single update) > preserves bypass mention
✗ updateAmountUSD > update (loop) > iterates trades and calls _ for eligible trades [1000.00ms]
✗ createTranscript > creates and uploads a transcript
✗ createTranscript > handles upload failure

 706 pass
 4 skip
 14 fail
 3756 expect() calls
Ran 724 tests across 55 files. [10.64s]

and does not has the same behavior as bun test .

4 tests skipped:
» finishTrade Referral > does not reward if join_source_type is not 5
» finishTrade Referral > does not reward if referred user has >= 10 trades
» updatePoints > adds points if user exists and has points
» updatePoints > removes points if user exists and has points (negative value)

 720 pass
 4 skip
 0 fail
 3769 expect() calls
Ran 724 tests across 55 files. [9.45s]

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions