MCPcopy Create free account
hub / github.com/andywer/postguard / pathToFixture

Function pathToFixture

test/syntax-error.test.ts:6–6  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

4import { containsToRegex } from "./_helpers/assert"
5
6const pathToFixture = (fileName: string) => path.join(__dirname, "_fixtures", fileName)
7
8test("fails on bad table reference", t => {
9 const error = t.throws(() => parseSourceFile(loadSourceFile(pathToFixture("syntax-error.ts"))))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected