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

Function pathToFixture

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

Source from the content-addressed store, hash-verified

4import { validateQuery } from "../src/validation"
5
6const pathToFixture = (fileName: string) => path.join(__dirname, "_fixtures", fileName)
7
8test("can parse and validate a JS file successfully", t => {
9 const { queries, tableSchemas } = parseSourceFile(loadSourceFile(pathToFixture("valid.js")))

Callers 1

valid.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected