mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-23 20:25:56 +00:00
Type both Diagnostics response fixtures explicitly
The full-export response includes populated identity arrays, so its route fixture must not inherit the empty response's never-array inference. Keep both payload shapes type-checked without suppressing compiler diagnostics. Contract-Neutral: Integration fixture typing only; no runtime, API, permissions or product contract change. Change-source: pulse-maintainer
This commit is contained in:
@@ -345,7 +345,8 @@ const test = base.extend<{}, WorkerFixtures>({
|
||||
|
||||
async function prepareDiagnosticsRoute(
|
||||
page: Page,
|
||||
payload = DIAGNOSTICS_PAYLOAD,
|
||||
payload: typeof DIAGNOSTICS_PAYLOAD | typeof EXPORT_DIAGNOSTICS_PAYLOAD =
|
||||
DIAGNOSTICS_PAYLOAD,
|
||||
): Promise<DiagnosticsTraffic> {
|
||||
const traffic: DiagnosticsTraffic = { reads: 0, writes: [] };
|
||||
page.on("request", (request) => {
|
||||
|
||||
Reference in New Issue
Block a user