github Effect-TS/effect @effect/platform-bun@0.41.5

latest releases: @effect/typeclass@0.29.14, @effect/vitest@0.13.14, @effect/sql-sqlite-wasm@0.20.5...
3 months ago

Patch Changes

  • #3409 056b710 Thanks @sukovanej! - Add BunHttpServer.layerTest.

    import { HttpClientRequest, HttpRouter, HttpServer } from "@effect/platform";
    import { BunHttpServer } from "@effect/platform-bun";
    import { expect, it } from "bun:test";
    import { Effect } from "effect";
    
    it("test", () =>
      Effect.gen(function* (_) {
        yield* HttpServer.serveEffect(HttpRouter.empty);
        const response = yield* HttpClientRequest.get("/non-existing");
        expect(response.status).toEqual(404);
      }).pipe(
        Effect.provide(BunHttpServer.layerTest),
        Effect.scoped,
        Effect.runPromise,
      ));
  • Updated dependencies [056b710]:

    • @effect/platform@0.61.5
    • @effect/platform-node-shared@0.11.5

Don't miss a new effect release

NewReleases is sending notifications on new releases.