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

Function runFixture

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

Source from the content-addressed store, hash-verified

6const fixture = join(__dirname, "fixtures", "node-terminal.ts")
7
8const runFixture = (mode: string, input: string) =>
9 spawnSync(process.execPath, [fixture, mode], {
10 encoding: "utf8",
11 input,
12 timeout: 2_000
13 })
14
15const assertResult = (mode: string, input: string, expected: string) => {
16 const result = runFixture(mode, input)

Callers 1

assertResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected