MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeMethods

Function makeMethods

packages/vitest/src/internal/internal.ts:295–304  ·  view source on GitHub ↗
(it: Vitest.API)

Source from the content-addressed store, hash-verified

293
294/** @internal */
295export const makeMethods = (it: Vitest.API): Vitest.Vitest.Methods =>
296 Object.assign(it, {
297 effect: makeTester<TestServices.TestServices>(Effect.provide(TestEnv), it),
298 scoped: makeTester<TestServices.TestServices | Scope.Scope>(flow(Effect.scoped, Effect.provide(TestEnv)), it),
299 live: makeTester<never>(identity, it),
300 scopedLive: makeTester<Scope.Scope>(Effect.scoped, it),
301 flakyTest,
302 layer,
303 prop
304 })
305
306/** @internal */
307export const {

Callers 2

internal.tsFile · 0.85
describeWrappedFunction · 0.85

Calls 2

makeTesterFunction · 0.85
provideMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…