Skip to content
Myr

color.test.ts

This file

Path

runtime-tests/bun/color.test.ts

21 lines · 547 bytes · TypeScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than f0b094d point at it.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 1–21why, one step back
1import { expect, test } from 'bun:test'
23test('Bun.build compatibility test', async () => {4 try {5 const result = await Bun.build({6 entrypoints: ['./src/utils/color.ts'],7 format: 'esm',8 minify: true,9 external: [],10 })1112 expect(result.success).toBe(true)13 expect(result.logs).toHaveLength(0)14 expect(result.outputs).toHaveLength(1)1516 const outputContent = await result.outputs[0].text()17 expect(outputContent).toBeDefined()18 } catch (error) {19 throw new Error(`Bun.build failed: ${error}`)20 }21})