feat: harden test and registry evidence
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { http, HttpResponse } from "msw";
|
||||
|
||||
export function createBootstrapHandlers(
|
||||
runtimeConfig: Readonly<Record<string, unknown>>,
|
||||
releaseManifest: Readonly<Record<string, unknown>>,
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user