chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-12 00:33:34 +00:00
parent ec9584177f
commit 8015ff7ca5
@@ -95,7 +95,8 @@ Use Effect-aware fixtures from `test/fixture/fixture.ts`:
Use finalizers only as a temporary bridge for existing global mutations: Use finalizers only as a temporary bridge for existing global mutations:
```ts ```ts
yield* Effect.acquireUseRelease( yield *
Effect.acquireUseRelease(
Effect.sync(() => { Effect.sync(() => {
const previous = process.env.MY_FLAG const previous = process.env.MY_FLAG
process.env.MY_FLAG = "1" process.env.MY_FLAG = "1"
@@ -107,7 +108,7 @@ yield* Effect.acquireUseRelease(
if (previous === undefined) delete process.env.MY_FLAG if (previous === undefined) delete process.env.MY_FLAG
else process.env.MY_FLAG = previous else process.env.MY_FLAG = previous
}), }),
) )
``` ```
TODO: eliminate this pattern over time. Tests should not toggle process-global flags or env vars when the behavior can be modeled with services. Prefer moving flag/env reads behind injectable services such as `Config.Service`, `Env.Service`, or focused test layers, then provide the desired test value through the layer graph instead of mutating `process.env` or `Global.Path`. TODO: eliminate this pattern over time. Tests should not toggle process-global flags or env vars when the behavior can be modeled with services. Prefer moving flag/env reads behind injectable services such as `Config.Service`, `Env.Service`, or focused test layers, then provide the desired test value through the layer graph instead of mutating `process.env` or `Global.Path`.
@@ -132,7 +133,7 @@ const run = Effect.fn("MyTest.run")(function* (input: Input) {
8. Replace Promise failure assertions with Effect assertions: 8. Replace Promise failure assertions with Effect assertions:
```ts ```ts
const exit = yield* run(input).pipe(Effect.exit) const exit = yield * run(input).pipe(Effect.exit)
expect(Exit.isFailure(exit)).toBe(true) expect(Exit.isFailure(exit)).toBe(true)
``` ```