MCPcopy Index your code
hub / github.com/epicweb-dev/epic-stack / readFixture

Function readFixture

tests/mocks/utils.ts:9–11  ·  view source on GitHub ↗
(subdir: string, name: string)

Source from the content-addressed store, hash-verified

7const fixturesDirPath = path.join(__dirname, '..', 'fixtures')
8
9export async function readFixture(subdir: string, name: string) {
10 return fsExtra.readJSON(path.join(fixturesDirPath, subdir, `${name}.json`))
11}
12
13export async function createFixture(
14 subdir: string,

Callers 1

readEmailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected