MCPcopy
hub / github.com/npmx-dev/npmx.dev / loadFixture

Function loadFixture

test/unit/server/utils/docs/format.spec.ts:7–10  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

5import type { DenoDocNode } from '#shared/types/deno-doc'
6
7function loadFixture(name: string): DenoDocNode {
8 const path = resolve(__dirname, '../../../../fixtures/esm-sh/doc-nodes', name)
9 return JSON.parse(readFileSync(path, 'utf-8'))
10}
11
12// =============================================================================
13// Issue #1411: wrong `unknown` types in package api docs

Callers 1

format.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected