New `layer` Helper in `@effect/vitest` Simplifies Test Setup and Teardown

PSA I just saw that the
@effect/vitest
package got a
layer
helper. This is amazing, and obviates the need to do global vitest setup/teardown stuff (think testcontainers, etc.), and you can simply do everything effectfully/with layers. Awesome work - just wanted to plug this for anyone who hasn't seen it yet:

https://github.com/Effect-TS/effect/pull/3689/files#diff-20800ef8aae0529bdca1413b0ba123e5214699545bc0cc37f24c19c07f132671
Was this page helpful?