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

Function makeIt

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

Source from the content-addressed store, hash-verified

224 )
225
226 const makeIt = (it: Vitest.API): Vitest.Vitest.MethodsNonLive<R, ExcludeTestServices> =>
227 Object.assign(it, {
228 effect: makeTester<TestServices.TestServices | R>(
229 (effect) => Effect.flatMap(runtimeEffect, (runtime) => effect.pipe(Effect.provide(runtime))),
230 it
231 ),
232
233 prop,
234
235 scoped: makeTester<TestServices.TestServices | Scope.Scope | R>(
236 (effect) =>
237 Effect.flatMap(runtimeEffect, (runtime) =>
238 effect.pipe(
239 Effect.scoped,
240 Effect.provide(runtime)
241 )),
242 it
243 ),
244 flakyTest,
245 layer<R2, E2>(nestedLayer: Layer.Layer<R2, E2, R>, options?: {
246 readonly timeout?: Duration.DurationInput
247 }) {
248 return layer(Layer.provideMerge(nestedLayer, withTestEnv), { ...options, memoMap, excludeTestServices })
249 }
250 })
251
252 if (args.length === 1) {
253 V.beforeAll(

Callers 1

layerFunction · 0.85

Calls 3

makeTesterFunction · 0.85
pipeMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected