- bun: Incredibly fast JavaScript runtime, bundler, transpiler and package manager – all in one.
This a new template for projects with bun.
Bun implements a test framework for JavaScript.
bun wiptest
with this we are replace jest
- Example
test/app.test.ts
import { test, expect } from "bun:test";
import { sum } from "../src/app";
test("sum", () => {
expect(sum(1, 2)).toBe(3);
});
package.json
{
"scripts": {
"test": "bun wiptest"
},
}
terminal
bun run test