bun-effect.ts This file provides a minimal test wrapper for Bun's native test runner, implementing `it.effect()` and `it.scoped()` methods that allow testing Effect-TS effects directly with `bun test`. The wrapper includes support for `skip`, `only`, and timeout options, and is designed as a temporary solution until the official `@effect/bun-test` package is released. bun-effect.ts This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters / Minimal Effect test wrapper for Bun's native test runner. This provides it.effect and it.scoped that work with bun test , bun's native test runner, similar to @effect/vitest . When the official @effect/bun-test package is released, replace this with that package. @see https://github.com/Effect-TS/effect/pull/5973 @example ts import { describe, expect, it } from "./bun-effect" import { Effect, Layer } from "effect" describe "my test", = { it.effect "runs an effect", = Effect.gen function { const result = yield someEffect expect result .toBe expected } .pipe Effect.provide TestLayer it.scoped "runs a scoped effect", = Effect.gen function { const resource = yield acquireResource expect resource .toBeDefined } it.effect.skip "skipped test", = Effect.succeed 1 it.effect.only "only this test", = Effect.succeed 1 } / import { afterAll, beforeAll, describe, expect, test } from "bun:test" import { Effect, TestServices } from "effect" import type { Scope } from "effect" export { afterAll, beforeAll, describe, expect } type TestOptions = { timeout?: number } const runTest =