Skip to content

feat(ts): add Bun test template#4174

Open
a-hariti wants to merge 5 commits into
otter-sec:masterfrom
a-hariti:bun-test-runner
Open

feat(ts): add Bun test template#4174
a-hariti wants to merge 5 commits into
otter-sec:masterfrom
a-hariti:bun-test-runner

Conversation

@a-hariti
Copy link
Copy Markdown
Contributor

Adds a --test-template bun option to anchor init

The package manager is replace by bun when the test template is set to bun.

Note

I had to prepend a sleep 0.3 to bun test in Anchor.toml, otherwise anchor test fails with an error that the program is not deployed.

The minimum time required looks suspiciously close to a slot time.

This is obviously a race condition due to the speed of Bun, but I'm not sure about the ideal way to handle it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 10, 2026

@a-hariti is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread cli/src/rust_template.rs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants