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

Function runFixture

packages/platform/node-shared/test/NodeTerminal.test.ts:26–32  ·  view source on GitHub ↗
(mode: string, input: string)

Source from the content-addressed store, hash-verified

24const fixture = join(__dirname, "fixtures", "node-terminal.ts")
25
26const runFixture = (mode: string, input: string) =>
27 spawnSync(process.execPath, [fixture, mode], {
28 encoding: "utf8",
29 input,
30 // Includes Node startup and loading the fixture imports under CI worker load.
31 timeout: 10_000
32 })
33
34const assertResult = (mode: string, input: string, expected: string) => {
35 const result = runFixture(mode, input)

Callers 1

assertResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected