Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Aug 00:03
· 660 commits to main since this release
826d4fa

Patch Changes

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

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