chore: generate
This commit is contained in:
@@ -152,8 +152,7 @@ import { Effect, Layer } from "effect"
|
|||||||
import { Account } from "@/account/account"
|
import { Account } from "@/account/account"
|
||||||
|
|
||||||
const failingAccountLayer = Layer.mock(Account.Service, {
|
const failingAccountLayer = Layer.mock(Account.Service, {
|
||||||
orgsByAccount: () =>
|
orgsByAccount: () => Effect.fail(new Account.AccountServiceError({ message: "simulated upstream failure" })),
|
||||||
Effect.fail(new Account.AccountServiceError({ message: "simulated upstream failure" })),
|
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,7 @@ import { Effect, Layer } from "effect"
|
|||||||
const ORIG = await import("../../src/account/account")
|
const ORIG = await import("../../src/account/account")
|
||||||
|
|
||||||
const failingAccountLayer = Layer.mock(ORIG.Service, {
|
const failingAccountLayer = Layer.mock(ORIG.Service, {
|
||||||
orgsByAccount: () =>
|
orgsByAccount: () => Effect.fail(new ORIG.AccountServiceError({ message: "simulated upstream failure" })),
|
||||||
Effect.fail(new ORIG.AccountServiceError({ message: "simulated upstream failure" })),
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const mocked = {
|
const mocked = {
|
||||||
|
|||||||
Reference in New Issue
Block a user