Dashboard › opencode › Effect testEffect and it.live
01a07f11-75c4-77d1-9367-ed5ca60d6cc5Always use testEffect(...) for Effect services, layers, context, and scoped resources; use it.live(...) for filesystem, Git, HTTP, sockets, processes, locks, and real time. Prefer actual implementations, explicit layers, scoped fixtures, and finalizers over mocks or ad hoc runtimes because ownership and cleanup remain visible. Avoid globalThis unless unavoidable and never duplicate implementation logic in tests. Run tests only from the owning package.