MCPcopy Create free account
hub / github.com/observablehq/framework / getOptions

Function getOptions

test/resolvers-test.ts:8–10  ·  view source on GitHub ↗
({path, ...config}: ConfigSpec & {path: string})

Source from the content-addressed store, hash-verified

6import {mockJsDelivr} from "./mocks/jsdelivr.js";
7
8function getOptions({path, ...config}: ConfigSpec & {path: string}): Config & {path: string} {
9 return {...normalizeConfig(config), path};
10}
11
12describe("getResolvers(page, {root, path})", () => {
13 mockJsDelivr();

Callers 1

resolvers-test.tsFile · 0.85

Calls 1

normalizeConfigFunction · 0.85

Tested by

no test coverage detected