Bun's built-in test runner: zero config, Jest-compatible, 10x faster.
import { describe, it, expect, mock } from 'bun:test'
describe('math', () => {
it('adds', () => expect(1 + 1).toBe(2))
})
const fn = mock(() => 42)
fn()
expect(fn).toHaveBeenCalled()
bun test # that's it
Jest 8.5s vs Vitest 3.2s vs Bun 0.8s for 1000 tests.
Need to automate data collection or build custom scrapers? Check out my Apify actors for ready-made tools, or email spinov001@gmail.com for custom solutions.
Top comments (0)