Skip to content
Dev.to1 min read

Bun Test Has a Free API That Runs Jest-Compatible...

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.
Read original on dev.to
0
0

Comment

Sign in to join the discussion.

Loading comments…

Related

Get the 10 best reads every Sunday

Curated by AI, voted by readers. Free forever.

Liked this? Start your own feed.

0
0