MCPcopy Index your code
hub / github.com/GitbookIO/gitbook / serveFixture

Function serveFixture

packages/openapi-parser/src/filesystem.test.ts:5–9  ·  view source on GitHub ↗
(fixture: string)

Source from the content-addressed store, hash-verified

3import { createFileSystem } from './filesystem';
4
5async function serveFixture(fixture: string) {
6 return new Response(await Bun.file(new URL(`./fixtures/${fixture}`, import.meta.url)).bytes(), {
7 headers: { 'Content-Type': 'application/yaml' },
8 });
9}
10
11describe('#createFileSystem', () => {
12 let server: Server;

Callers 1

filesystem.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected