import { http, HttpResponse } from "msw"; export function createBootstrapHandlers( runtimeConfig: Readonly>, releaseManifest: Readonly>, baseUrl = "http://app.test", ) { return [ http.get(`${baseUrl}/config.json`, () => HttpResponse.json(structuredClone(runtimeConfig)), ), http.get(`${baseUrl}/release-manifest.json`, () => HttpResponse.json(structuredClone(releaseManifest)), ), ] as const; }