| author | |
| committer | |
| log | 7bee189dfb5cd6807457e98af0c2f95f5ed50edd |
| tree | e70494d8e8584ac543de8df0cd6f477e09ce9446 |
| parent | fbe5df2d4b630d13adc8fe2d38cab354e6d66d67 |
| signature | Signed by PGP key B5690EEEBB952194 |
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>32 files changed, 14 insertions(+), 192 deletions(-)
apps/mobile/src/features/cloud/linkEnvironment.test.ts-2| ... | ... | @@ -293,7 +293,6 @@ describe("mobile cloud link environment client", () => { |
| 293 | 293 | const bodies: Array<unknown> = []; |
| 294 | 294 | const fetchMock = vi.fn((url: string | URL, init?: RequestInit) => { |
| 295 | 295 | if (init?.body) { |
| 296 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 297 | 296 | bodies.push(JSON.parse(requestBodyText(init.body))); |
| 298 | 297 | } |
| 299 | 298 | if (String(url).endsWith("/v1/client/environment-link-challenges")) { |
| ... | ... | @@ -348,7 +347,6 @@ describe("mobile cloud link environment client", () => { |
| 348 | 347 | const bodies: Array<Record<string, unknown>> = []; |
| 349 | 348 | const fetchMock = vi.fn((url: string | URL, init?: RequestInit) => { |
| 350 | 349 | if (init?.body) { |
| 351 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 352 | 350 | bodies.push(JSON.parse(requestBodyText(init.body)) as Record<string, unknown>); |
| 353 | 351 | } |
| 354 | 352 | if (String(url).endsWith("/v1/client/environment-link-challenges")) { |
apps/server/src/cli/config.test.ts-5| ... | ... | @@ -650,7 +650,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => { |
| 650 | 650 | yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true }); |
| 651 | 651 | yield* fs.writeFileString( |
| 652 | 652 | derivedPaths.settingsPath, |
| 653 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 654 | 653 | `${JSON.stringify({ |
| 655 | 654 | observability: { |
| 656 | 655 | otlpTracesUrl: "http://localhost:4318/v1/traces", |
| ... | ... | @@ -722,7 +721,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => { |
| 722 | 721 | yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true }); |
| 723 | 722 | yield* fs.writeFileString( |
| 724 | 723 | derivedPaths.settingsPath, |
| 725 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 726 | 724 | `${JSON.stringify({ |
| 727 | 725 | observability: { |
| 728 | 726 | otlpTracesUrl: "http://localhost:4318/v1/traces", |
| ... | ... | @@ -774,7 +772,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => { |
| 774 | 772 | yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true }); |
| 775 | 773 | yield* fs.writeFileString( |
| 776 | 774 | derivedPaths.settingsPath, |
| 777 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 778 | 775 | `${JSON.stringify({ |
| 779 | 776 | observability: { |
| 780 | 777 | otlpTracesUrl: "http://localhost:4318/v1/traces", |
| ... | ... | @@ -1073,7 +1070,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => { |
| 1073 | 1070 | yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true }); |
| 1074 | 1071 | yield* fs.writeFileString( |
| 1075 | 1072 | derivedPaths.settingsPath, |
| 1076 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1077 | 1073 | `${JSON.stringify({ observability: { otlpLogsUrl: "http://settings:4318/v1/logs" } })}\n`, |
| 1078 | 1074 | ); |
| 1079 | 1075 | |
| ... | ... | @@ -1145,7 +1141,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => { |
| 1145 | 1141 | yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true }); |
| 1146 | 1142 | yield* fs.writeFileString( |
| 1147 | 1143 | derivedPaths.settingsPath, |
| 1148 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1149 | 1144 | `${JSON.stringify({ observability: { otlpLogsUrl: "http://settings:4318/v1/logs" } })}\n`, |
| 1150 | 1145 | ); |
| 1151 | 1146 |
apps/server/src/cli/pair.test.ts-1| ... | ... | @@ -173,7 +173,6 @@ describe("t3 pair", () => { |
| 173 | 173 | const listed = yield* captureStdout( |
| 174 | 174 | runCli(["auth", "pairing", "list", "--base-dir", baseDir, "--json"]), |
| 175 | 175 | ); |
| 176 | // @effect-diagnostics-next-line preferSchemaOverJson:off - CLI JSON output is decoded as a presentation DTO. | |
| 177 | 176 | const credentials = JSON.parse(listed) as ReadonlyArray<{ readonly label?: string }>; |
| 178 | 177 | assert.equal(credentials.length, 1); |
| 179 | 178 | assert.equal(credentials[0]?.label, "t3 pair"); |
apps/server/src/cloud/bootService.test.ts-4| ... | ... | @@ -359,7 +359,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => { |
| 359 | 359 | current: true, |
| 360 | 360 | installedVersion: "1.2.3", |
| 361 | 361 | }); |
| 362 | // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document. | |
| 363 | 362 | const pendingState = JSON.stringify({ |
| 364 | 363 | protocol: SERVICE_LAUNCHER_PROTOCOL, |
| 365 | 364 | activeVersion: "1.2.3", |
| ... | ... | @@ -546,7 +545,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => { |
| 546 | 545 | Effect.gen(function* () { |
| 547 | 546 | const { service, fs, statePath } = yield* makeHarness(); |
| 548 | 547 | yield* service.install(); |
| 549 | // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document. | |
| 550 | 548 | const pendingState = JSON.stringify({ |
| 551 | 549 | protocol: SERVICE_LAUNCHER_PROTOCOL, |
| 552 | 550 | activeVersion: "1.2.3", |
| ... | ... | @@ -647,7 +645,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => { |
| 647 | 645 | Effect.gen(function* () { |
| 648 | 646 | const { service, fs, statePath, commands } = yield* makeHarness(); |
| 649 | 647 | yield* service.install(); |
| 650 | // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document. | |
| 651 | 648 | const pendingState = JSON.stringify({ |
| 652 | 649 | protocol: SERVICE_LAUNCHER_PROTOCOL - 1, |
| 653 | 650 | activeVersion: "1.2.3", |
| ... | ... | @@ -808,7 +805,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => { |
| 808 | 805 | const { service, fs, statePath, commands } = yield* makeHarness("darwin"); |
| 809 | 806 | yield* service.install(); |
| 810 | 807 | const plistPath = (yield* service.status).unitPath; |
| 811 | // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document. | |
| 812 | 808 | const pendingState = JSON.stringify({ |
| 813 | 809 | protocol: SERVICE_LAUNCHER_PROTOCOL - 1, |
| 814 | 810 | activeVersion: "1.2.3", |
apps/server/src/cloud/selfUpdate.test.ts-1| ... | ... | @@ -84,7 +84,6 @@ const makeHarness = Effect.fn("test.make_self_update_harness")(function* ( |
| 84 | 84 | launcherProtocol: SERVICE_LAUNCHER_PROTOCOL, |
| 85 | 85 | }; |
| 86 | 86 | return { |
| 87 | // @effect-diagnostics-next-line preferSchemaOverJson:off - fake child-process stdout. | |
| 88 | 87 | stdout: JSON.stringify(result), |
| 89 | 88 | stderr: "", |
| 90 | 89 | code: ChildProcessSpawner.ExitCode(0), |
apps/server/src/device/SshDeviceHost.test.ts-1| ... | ... | @@ -1,4 +1,3 @@ |
| 1 | // @effect-diagnostics preferSchemaOverJson:off - the external process fixture emits raw JSON over SSH stdout. | |
| 2 | 1 | import { expect, it } from "@effect/vitest"; |
| 3 | 2 | import * as NodeServices from "@effect/platform-node/NodeServices"; |
| 4 | 3 | import * as Net from "@t3tools/shared/Net"; |
apps/server/src/device/sshDeviceScript.test.ts+1-1| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | // @effect-diagnostics nodeBuiltinImport:off globalFetchInEffect:off preferSchemaOverJson:off - verifies generated remote scripts using real shell and Node processes. | |
| 1 | // @effect-diagnostics nodeBuiltinImport:off globalFetchInEffect:off - verifies generated remote scripts using real shell and Node processes. | |
| 2 | 2 | import * as Effect from "effect/Effect"; |
| 3 | 3 | import { HostProcessPlatform } from "@t3tools/shared/hostProcess"; |
| 4 | 4 | import { describe, expect, it } from "@effect/vitest"; |
apps/server/src/git/GitManager.test.ts-52| ... | ... | @@ -790,7 +790,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 790 | 790 | const { manager } = yield* makeManager({ |
| 791 | 791 | ghScenario: { |
| 792 | 792 | prListSequence: [ |
| 793 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 794 | 793 | JSON.stringify([ |
| 795 | 794 | { |
| 796 | 795 | number: 13, |
| ... | ... | @@ -835,7 +834,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 835 | 834 | const { manager } = yield* makeManager({ |
| 836 | 835 | ghScenario: { |
| 837 | 836 | prListSequence: [ |
| 838 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 839 | 837 | JSON.stringify([ |
| 840 | 838 | { |
| 841 | 839 | number: 14, |
| ... | ... | @@ -875,7 +873,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 875 | 873 | const { manager } = yield* makeManager({ |
| 876 | 874 | ghScenario: { |
| 877 | 875 | prListSequence: [ |
| 878 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 879 | 876 | JSON.stringify([ |
| 880 | 877 | { |
| 881 | 878 | number: 0, |
| ... | ... | @@ -928,7 +925,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 928 | 925 | const { manager } = yield* makeManager({ |
| 929 | 926 | ghScenario: { |
| 930 | 927 | prListSequence: [ |
| 931 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 932 | 928 | JSON.stringify([ |
| 933 | 929 | { |
| 934 | 930 | number: 16, |
| ... | ... | @@ -1042,7 +1038,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1042 | 1038 | }; |
| 1043 | 1039 | const { manager, ghCalls } = yield* makeManager({ |
| 1044 | 1040 | ghScenario: { |
| 1045 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1046 | 1041 | prListSequence: [JSON.stringify([existingPr]), JSON.stringify([existingPr])], |
| 1047 | 1042 | }, |
| 1048 | 1043 | }); |
| ... | ... | @@ -1095,7 +1090,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1095 | 1090 | ghScenario: { |
| 1096 | 1091 | prListSequence: [ |
| 1097 | 1092 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1098 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1099 | 1093 | JSON.stringify([ |
| 1100 | 1094 | { |
| 1101 | 1095 | number: 217, |
| ... | ... | @@ -1138,7 +1132,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1138 | 1132 | prListSequence: [ |
| 1139 | 1133 | "[]", |
| 1140 | 1134 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1141 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1142 | 1135 | JSON.stringify([ |
| 1143 | 1136 | { |
| 1144 | 1137 | number: 114, |
| ... | ... | @@ -1244,7 +1237,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1244 | 1237 | ghScenario: { |
| 1245 | 1238 | prListSequence: [ |
| 1246 | 1239 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1247 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1248 | 1240 | JSON.stringify([ |
| 1249 | 1241 | { |
| 1250 | 1242 | number: 216, |
| ... | ... | @@ -1296,7 +1288,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1296 | 1288 | ghScenario: { |
| 1297 | 1289 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1298 | 1290 | prListSequence: [ |
| 1299 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1300 | 1291 | JSON.stringify([ |
| 1301 | 1292 | { |
| 1302 | 1293 | number: 221, |
| ... | ... | @@ -1347,7 +1338,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1347 | 1338 | ghScenario: { |
| 1348 | 1339 | prListSequence: [ |
| 1349 | 1340 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1350 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1351 | 1341 | JSON.stringify([ |
| 1352 | 1342 | { |
| 1353 | 1343 | number: 217, |
| ... | ... | @@ -1410,7 +1400,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1410 | 1400 | ghScenario: { |
| 1411 | 1401 | prListByHeadSelector: { |
| 1412 | 1402 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1413 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1414 | 1403 | "feature/deleted-fork-branch": JSON.stringify([ |
| 1415 | 1404 | { |
| 1416 | 1405 | number: 218, |
| ... | ... | @@ -1492,7 +1481,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1492 | 1481 | ghScenario: { |
| 1493 | 1482 | prListSequence: [ |
| 1494 | 1483 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1495 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1496 | 1484 | JSON.stringify([ |
| 1497 | 1485 | { |
| 1498 | 1486 | number: 219, |
| ... | ... | @@ -1545,7 +1533,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1545 | 1533 | ghScenario: { |
| 1546 | 1534 | prListSequence: [ |
| 1547 | 1535 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 1548 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1549 | 1536 | JSON.stringify([ |
| 1550 | 1537 | { |
| 1551 | 1538 | number: 220, |
| ... | ... | @@ -1719,7 +1706,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1719 | 1706 | const { manager, ghCalls } = yield* makeManager({ |
| 1720 | 1707 | ghScenario: { |
| 1721 | 1708 | prListSequence: [ |
| 1722 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1723 | 1709 | JSON.stringify([ |
| 1724 | 1710 | { |
| 1725 | 1711 | number: 215, |
| ... | ... | @@ -1768,7 +1754,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1768 | 1754 | const { manager, ghCalls } = yield* makeManager({ |
| 1769 | 1755 | ghScenario: { |
| 1770 | 1756 | prListSequence: [ |
| 1771 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1772 | 1757 | JSON.stringify([ |
| 1773 | 1758 | { |
| 1774 | 1759 | number: 214, |
| ... | ... | @@ -1991,7 +1976,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 1991 | 1976 | const { manager } = yield* makeManager({ |
| 1992 | 1977 | ghScenario: { |
| 1993 | 1978 | prListSequence: [ |
| 1994 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1995 | 1979 | JSON.stringify([ |
| 1996 | 1980 | { |
| 1997 | 1981 | number: 1661, |
| ... | ... | @@ -2045,7 +2029,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2045 | 2029 | const { manager, ghCalls } = yield* makeManager({ |
| 2046 | 2030 | ghScenario: { |
| 2047 | 2031 | prListSequence: [ |
| 2048 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2049 | 2032 | JSON.stringify([ |
| 2050 | 2033 | { |
| 2051 | 2034 | number: 488, |
| ... | ... | @@ -2111,7 +2094,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2111 | 2094 | const { manager, ghCalls } = yield* makeManager({ |
| 2112 | 2095 | ghScenario: { |
| 2113 | 2096 | prListByHeadSelector: { |
| 2114 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2115 | 2097 | main: JSON.stringify([ |
| 2116 | 2098 | { |
| 2117 | 2099 | number: 777, |
| ... | ... | @@ -2187,7 +2169,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2187 | 2169 | const { manager, ghCalls } = yield* makeManager({ |
| 2188 | 2170 | ghScenario: { |
| 2189 | 2171 | prListByHeadSelector: { |
| 2190 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2191 | 2172 | "effect-atom": JSON.stringify([ |
| 2192 | 2173 | { |
| 2193 | 2174 | number: 1618, |
| ... | ... | @@ -2199,7 +2180,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2199 | 2180 | updatedAt: "2026-03-01T10:00:00Z", |
| 2200 | 2181 | }, |
| 2201 | 2182 | ]), |
| 2202 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2203 | 2183 | "upstream/effect-atom": JSON.stringify([ |
| 2204 | 2184 | { |
| 2205 | 2185 | number: 1518, |
| ... | ... | @@ -2250,7 +2230,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2250 | 2230 | const { manager } = yield* makeManager({ |
| 2251 | 2231 | ghScenario: { |
| 2252 | 2232 | prListSequence: [ |
| 2253 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2254 | 2233 | JSON.stringify([ |
| 2255 | 2234 | { |
| 2256 | 2235 | number: 22, |
| ... | ... | @@ -2289,7 +2268,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2289 | 2268 | const { manager } = yield* makeManager({ |
| 2290 | 2269 | ghScenario: { |
| 2291 | 2270 | prListSequence: [ |
| 2292 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2293 | 2271 | JSON.stringify([ |
| 2294 | 2272 | { |
| 2295 | 2273 | number: 23, |
| ... | ... | @@ -2325,7 +2303,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2325 | 2303 | const { manager, ghCalls } = yield* makeManager({ |
| 2326 | 2304 | ghScenario: { |
| 2327 | 2305 | prListSequence: [ |
| 2328 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2329 | 2306 | JSON.stringify([ |
| 2330 | 2307 | { |
| 2331 | 2308 | number: 54, |
| ... | ... | @@ -2365,7 +2342,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2365 | 2342 | ghScenario: { |
| 2366 | 2343 | prListByHeadSelector: { |
| 2367 | 2344 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 2368 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2369 | 2345 | "feature/pushed-plain": JSON.stringify([ |
| 2370 | 2346 | { |
| 2371 | 2347 | number: 88, |
| ... | ... | @@ -2420,7 +2396,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2420 | 2396 | ghScenario: { |
| 2421 | 2397 | prListByHeadSelector: { |
| 2422 | 2398 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 2423 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2424 | 2399 | "feature/fork-plain": JSON.stringify([ |
| 2425 | 2400 | { |
| 2426 | 2401 | number: 89, |
| ... | ... | @@ -2476,7 +2451,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2476 | 2451 | ghScenario: { |
| 2477 | 2452 | prListByHeadSelector: { |
| 2478 | 2453 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 2479 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2480 | 2454 | "feature/fork-settle": JSON.stringify([ |
| 2481 | 2455 | { |
| 2482 | 2456 | number: 91, |
| ... | ... | @@ -2524,7 +2498,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2524 | 2498 | ghScenario: { |
| 2525 | 2499 | prListByHeadSelector: { |
| 2526 | 2500 | // Fake gh returns raw JSON stdout, matching the CLI boundary under test. |
| 2527 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2528 | 2501 | "feature/sticky-plain": JSON.stringify([ |
| 2529 | 2502 | { |
| 2530 | 2503 | number: 90, |
| ... | ... | @@ -2564,7 +2537,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2564 | 2537 | const { manager } = yield* makeManager({ |
| 2565 | 2538 | ghScenario: { |
| 2566 | 2539 | prListSequence: [ |
| 2567 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2568 | 2540 | JSON.stringify([ |
| 2569 | 2541 | { |
| 2570 | 2542 | number: 45, |
| ... | ... | @@ -2698,7 +2670,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2698 | 2670 | }; |
| 2699 | 2671 | const { manager } = yield* makeManager({ |
| 2700 | 2672 | ghScenario: { |
| 2701 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2702 | 2673 | prListSequence: [JSON.stringify([existingPr])], |
| 2703 | 2674 | failWith: new GitHubCli.GitHubCliUnavailableError({ |
| 2704 | 2675 | command: "gh", |
| ... | ... | @@ -2742,7 +2713,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2742 | 2713 | }; |
| 2743 | 2714 | const { manager } = yield* makeManager({ |
| 2744 | 2715 | ghScenario: { |
| 2745 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2746 | 2716 | prListSequence: [JSON.stringify([existingPr])], |
| 2747 | 2717 | failWith: new GitHubCli.GitHubCliUnavailableError({ |
| 2748 | 2718 | command: "gh", |
| ... | ... | @@ -2791,7 +2761,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2791 | 2761 | }; |
| 2792 | 2762 | const { manager } = yield* makeManager({ |
| 2793 | 2763 | ghScenario: { |
| 2794 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2795 | 2764 | prListSequence: [JSON.stringify([existingPr])], |
| 2796 | 2765 | failWith: new GitHubCli.GitHubCliUnavailableError({ |
| 2797 | 2766 | command: "gh", |
| ... | ... | @@ -2831,7 +2800,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2831 | 2800 | }; |
| 2832 | 2801 | const { manager } = yield* makeManager({ |
| 2833 | 2802 | ghScenario: { |
| 2834 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2835 | 2803 | prListSequence: [JSON.stringify([existingPr])], |
| 2836 | 2804 | failWith: new GitHubCli.GitHubCliUnavailableError({ |
| 2837 | 2805 | command: "gh", |
| ... | ... | @@ -2874,7 +2842,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 2874 | 2842 | }; |
| 2875 | 2843 | const { manager } = yield* makeManager({ |
| 2876 | 2844 | ghScenario: { |
| 2877 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 2878 | 2845 | prListSequence: [JSON.stringify([existingPr])], |
| 2879 | 2846 | failWith: new GitHubCli.GitHubCliUnavailableError({ |
| 2880 | 2847 | command: "gh", |
| ... | ... | @@ -3469,7 +3436,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3469 | 3436 | ghScenario: { |
| 3470 | 3437 | prListSequence: [ |
| 3471 | 3438 | "[]", |
| 3472 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3473 | 3439 | JSON.stringify([ |
| 3474 | 3440 | { |
| 3475 | 3441 | number: 77, |
| ... | ... | @@ -3605,7 +3571,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3605 | 3571 | ghScenario: { |
| 3606 | 3572 | prListSequence: [ |
| 3607 | 3573 | "[]", |
| 3608 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3609 | 3574 | JSON.stringify([ |
| 3610 | 3575 | { |
| 3611 | 3576 | number: 303, |
| ... | ... | @@ -3652,7 +3617,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3652 | 3617 | ghScenario: { |
| 3653 | 3618 | prListSequence: [ |
| 3654 | 3619 | "[]", |
| 3655 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3656 | 3620 | JSON.stringify([ |
| 3657 | 3621 | { |
| 3658 | 3622 | number: 404, |
| ... | ... | @@ -3704,7 +3668,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3704 | 3668 | defaultBranch: "", |
| 3705 | 3669 | prListSequence: [ |
| 3706 | 3670 | "[]", |
| 3707 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3708 | 3671 | JSON.stringify([ |
| 3709 | 3672 | { |
| 3710 | 3673 | number: 505, |
| ... | ... | @@ -3744,7 +3707,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3744 | 3707 | const { manager, ghCalls } = yield* makeManager({ |
| 3745 | 3708 | ghScenario: { |
| 3746 | 3709 | prListSequence: [ |
| 3747 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3748 | 3710 | JSON.stringify([ |
| 3749 | 3711 | { |
| 3750 | 3712 | number: 42, |
| ... | ... | @@ -3798,7 +3760,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3798 | 3760 | const { manager, ghCalls } = yield* makeManager({ |
| 3799 | 3761 | ghScenario: { |
| 3800 | 3762 | prListSequence: [ |
| 3801 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3802 | 3763 | JSON.stringify([ |
| 3803 | 3764 | { |
| 3804 | 3765 | number: 142, |
| ... | ... | @@ -3875,7 +3836,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3875 | 3836 | const { manager, ghCalls } = yield* makeManager({ |
| 3876 | 3837 | ghScenario: { |
| 3877 | 3838 | prListByHeadSelector: { |
| 3878 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3879 | 3839 | "effect-atom": JSON.stringify([ |
| 3880 | 3840 | { |
| 3881 | 3841 | number: 1618, |
| ... | ... | @@ -3885,7 +3845,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3885 | 3845 | headRefName: "effect-atom", |
| 3886 | 3846 | }, |
| 3887 | 3847 | ]), |
| 3888 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3889 | 3848 | "upstream/effect-atom": JSON.stringify([ |
| 3890 | 3849 | { |
| 3891 | 3850 | number: 1518, |
| ... | ... | @@ -3935,9 +3894,7 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 3935 | 3894 | const { manager, ghCalls } = yield* makeManager({ |
| 3936 | 3895 | ghScenario: { |
| 3937 | 3896 | prListByHeadSelector: { |
| 3938 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3939 | 3897 | "t3code/pr-142/statemachine": JSON.stringify([]), |
| 3940 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 3941 | 3898 | statemachine: JSON.stringify([ |
| 3942 | 3899 | { |
| 3943 | 3900 | number: 41, |
| ... | ... | @@ -4003,7 +3960,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 4003 | 3960 | const { manager, ghCalls } = yield* makeManager({ |
| 4004 | 3961 | ghScenario: { |
| 4005 | 3962 | prListByHeadSelector: { |
| 4006 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 4007 | 3963 | statemachine: JSON.stringify([ |
| 4008 | 3964 | { |
| 4009 | 3965 | number: 142, |
| ... | ... | @@ -4021,7 +3977,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 4021 | 3977 | }, |
| 4022 | 3978 | }, |
| 4023 | 3979 | ]), |
| 4024 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 4025 | 3980 | "t3code/pr-142/statemachine": JSON.stringify([]), |
| 4026 | 3981 | }, |
| 4027 | 3982 | }, |
| ... | ... | @@ -4264,7 +4219,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 4264 | 4219 | ghScenario: { |
| 4265 | 4220 | prListSequence: [ |
| 4266 | 4221 | "[]", |
| 4267 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 4268 | 4222 | JSON.stringify([ |
| 4269 | 4223 | { |
| 4270 | 4224 | number: 88, |
| ... | ... | @@ -4385,7 +4339,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 4385 | 4339 | const { manager, ghCalls } = yield* makeManager({ |
| 4386 | 4340 | ghScenario: { |
| 4387 | 4341 | prListSequence: [ |
| 4388 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 4389 | 4342 | JSON.stringify([ |
| 4390 | 4343 | { |
| 4391 | 4344 | number: 1661, |
| ... | ... | @@ -4403,7 +4356,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 4403 | 4356 | }, |
| 4404 | 4357 | }, |
| 4405 | 4358 | ]), |
| 4406 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 4407 | 4359 | JSON.stringify([ |
| 4408 | 4360 | { |
| 4409 | 4361 | number: 188, |
| ... | ... | @@ -4466,9 +4418,7 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 4466 | 4418 | ghScenario: { |
| 4467 | 4419 | prListSequenceByHeadSelector: { |
| 4468 | 4420 | statemachine: [ |
| 4469 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 4470 | 4421 | JSON.stringify([]), |
| 4471 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 4472 | 4422 | JSON.stringify([ |
| 4473 | 4423 | { |
| 4474 | 4424 | number: 188, |
| ... | ... | @@ -6084,9 +6034,7 @@ it.layer(layerGitManagerTest)("GitManager", (it) => { |
| 6084 | 6034 | const { manager } = yield* makeManager({ |
| 6085 | 6035 | ghScenario: { |
| 6086 | 6036 | prListSequence: [ |
| 6087 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 6088 | 6037 | JSON.stringify([]), |
| 6089 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 6090 | 6038 | JSON.stringify([ |
| 6091 | 6039 | { |
| 6092 | 6040 | number: 201, |
apps/server/src/keybindings.test.ts-1| ... | ... | @@ -219,7 +219,6 @@ it.layer(NodeServices.layer)("keybindings", (it) => { |
| 219 | 219 | const { keybindingsConfigPath } = yield* ServerConfig.ServerConfig; |
| 220 | 220 | yield* fs.writeFileString( |
| 221 | 221 | keybindingsConfigPath, |
| 222 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 223 | 222 | JSON.stringify([ |
| 224 | 223 | { key: "mod+j", command: "terminal.toggle" }, |
| 225 | 224 | { key: "mod+shift+d+o", command: "terminal.new" }, |
apps/server/src/mcp/AcpMcpOverAcpBridge.test.ts-1| ... | ... | @@ -1,5 +1,4 @@ |
| 1 | 1 | // The bridge intentionally treats MCP JSON-RPC messages as opaque JSON. |
| 2 | // @effect-diagnostics preferSchemaOverJson:off | |
| 3 | 2 | import { describe, expect, it } from "@effect/vitest"; |
| 4 | 3 | import * as Effect from "effect/Effect"; |
| 5 | 4 | import * as Fiber from "effect/Fiber"; |
apps/server/src/mcp/AcpMcpStdioBridge.test.ts+1-1| ... | ... | @@ -1,6 +1,6 @@ |
| 1 | 1 | // The harness asserts raw JSON-RPC wire strings, mirroring the bridge's |
| 2 | 2 | // schema-free passthrough. |
| 3 | // @effect-diagnostics nodeBuiltinImport:off globalTimers:off preferSchemaOverJson:off | |
| 3 | // @effect-diagnostics nodeBuiltinImport:off globalTimers:off | |
| 4 | 4 | import * as NodeStream from "node:stream"; |
| 5 | 5 | |
| 6 | 6 | import { describe, expect, it } from "@effect/vitest"; |
apps/server/src/orchestration-v2/ProjectStore.test.ts-1| ... | ... | @@ -44,7 +44,6 @@ it.layer(ProjectStore.layer.pipe(Layer.provideMerge(SqlitePersistence.layerMemor |
| 44 | 44 | FROM projection_projects |
| 45 | 45 | WHERE project_id = ${projectId} |
| 46 | 46 | `; |
| 47 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 48 | 47 | assert.strictEqual(rows[0]?.defaultModelSelection, JSON.stringify(modelSelection)); |
| 49 | 48 | assert.deepStrictEqual( |
| 50 | 49 | Option.getOrNull(yield* projects.get(projectId))?.defaultModelSelection, |
apps/server/src/persistence/Migrations/016_CanonicalizeModelSelections.test.ts-7| ... | ... | @@ -265,7 +265,6 @@ layer("016_CanonicalizeModelSelections", (it) => { |
| 265 | 265 | FROM orchestration_events |
| 266 | 266 | ORDER BY rowid ASC |
| 267 | 267 | `; |
| 268 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 269 | 268 | assert.deepStrictEqual(JSON.parse(eventRows[0]!.payloadJson), { |
| 270 | 269 | projectId: "project-1", |
| 271 | 270 | title: "Project", |
| ... | ... | @@ -281,7 +280,6 @@ layer("016_CanonicalizeModelSelections", (it) => { |
| 281 | 280 | createdAt: "2026-01-01T00:00:00.000Z", |
| 282 | 281 | updatedAt: "2026-01-01T00:00:00.000Z", |
| 283 | 282 | }); |
| 284 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 285 | 283 | assert.deepStrictEqual(JSON.parse(eventRows[1]!.payloadJson), { |
| 286 | 284 | projectId: "project-2", |
| 287 | 285 | title: "Fallback Project", |
| ... | ... | @@ -297,7 +295,6 @@ layer("016_CanonicalizeModelSelections", (it) => { |
| 297 | 295 | createdAt: "2026-01-01T00:00:00.000Z", |
| 298 | 296 | updatedAt: "2026-01-01T00:00:00.000Z", |
| 299 | 297 | }); |
| 300 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 301 | 298 | assert.deepStrictEqual(JSON.parse(eventRows[2]!.payloadJson), { |
| 302 | 299 | projectId: "project-3", |
| 303 | 300 | title: "Null Model Project", |
| ... | ... | @@ -307,7 +304,6 @@ layer("016_CanonicalizeModelSelections", (it) => { |
| 307 | 304 | createdAt: "2026-01-01T00:00:00.000Z", |
| 308 | 305 | updatedAt: "2026-01-01T00:00:00.000Z", |
| 309 | 306 | }); |
| 310 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 311 | 307 | assert.deepStrictEqual(JSON.parse(eventRows[3]!.payloadJson), { |
| 312 | 308 | threadId: "thread-1", |
| 313 | 309 | projectId: "project-1", |
| ... | ... | @@ -327,7 +323,6 @@ layer("016_CanonicalizeModelSelections", (it) => { |
| 327 | 323 | createdAt: "2026-01-01T00:00:00.000Z", |
| 328 | 324 | updatedAt: "2026-01-01T00:00:00.000Z", |
| 329 | 325 | }); |
| 330 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 331 | 326 | assert.deepStrictEqual(JSON.parse(eventRows[4]!.payloadJson), { |
| 332 | 327 | threadId: "thread-2", |
| 333 | 328 | projectId: "project-1", |
| ... | ... | @@ -346,7 +341,6 @@ layer("016_CanonicalizeModelSelections", (it) => { |
| 346 | 341 | createdAt: "2026-01-01T00:00:00.000Z", |
| 347 | 342 | updatedAt: "2026-01-01T00:00:00.000Z", |
| 348 | 343 | }); |
| 349 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 350 | 344 | assert.deepStrictEqual(JSON.parse(eventRows[5]!.payloadJson), { |
| 351 | 345 | threadId: "thread-1", |
| 352 | 346 | turnId: "turn-1", |
| ... | ... | @@ -360,7 +354,6 @@ layer("016_CanonicalizeModelSelections", (it) => { |
| 360 | 354 | }, |
| 361 | 355 | deliveryMode: "buffered", |
| 362 | 356 | }); |
| 363 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 364 | 357 | assert.deepStrictEqual(JSON.parse(eventRows[6]!.payloadJson), { |
| 365 | 358 | threadId: "thread-3", |
| 366 | 359 | projectId: "project-1", |
apps/server/src/provider/ClaudeCapabilitiesProbe.test.ts-2| ... | ... | @@ -293,7 +293,6 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => { |
| 293 | 293 | }, |
| 294 | 294 | }); |
| 295 | 295 | |
| 296 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 297 | 296 | const invocation = JSON.parse(yield* fs.readFileString(invocationPath)) as { |
| 298 | 297 | readonly args: ReadonlyArray<string>; |
| 299 | 298 | readonly cwd: string; |
| ... | ... | @@ -310,7 +309,6 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => { |
| 310 | 309 | |
| 311 | 310 | const settingsFlagIndex = invocation.args.indexOf("--settings"); |
| 312 | 311 | assert.notEqual(settingsFlagIndex, -1); |
| 313 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 314 | 312 | const flagSettings = JSON.parse(invocation.args[settingsFlagIndex + 1] ?? "{}") as { |
| 315 | 313 | readonly disableAllHooks?: boolean; |
| 316 | 314 | }; |
apps/server/src/provider/CodexChatGptAuth.test.ts+1-1| ... | ... | @@ -1,4 +1,4 @@ |
| 1 | // @effect-diagnostics nodeBuiltinImport:off globalFetchInEffect:off preferSchemaOverJson:off - Local mock OAuth server validates the browser callback boundary. | |
| 1 | // @effect-diagnostics nodeBuiltinImport:off globalFetchInEffect:off - Local mock OAuth server validates the browser callback boundary. | |
| 2 | 2 | import * as NodeHttp from "node:http"; |
| 3 | 3 | import * as NodeCrypto from "node:crypto"; |
| 4 | 4 | import * as NodeServices from "@effect/platform-node/NodeServices"; |
apps/server/src/provider/CodexChatGptModels.test.ts-1| ... | ... | @@ -1,4 +1,3 @@ |
| 1 | // @effect-diagnostics preferSchemaOverJson:off - Mock HTTP responses use JSON fixtures. | |
| 2 | 1 | import { assert, it } from "@effect/vitest"; |
| 3 | 2 | import * as Effect from "effect/Effect"; |
| 4 | 3 | import { HttpClient, HttpClientResponse } from "effect/http"; |
apps/server/src/provider/GrokProvider.test.ts-2| ... | ... | @@ -380,7 +380,6 @@ it.layer(NodeServices.layer)("checkGrokProviderStatus", (it) => { |
| 380 | 380 | directory: dir, |
| 381 | 381 | name: "grok", |
| 382 | 382 | source: [ |
| 383 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 384 | 383 | `process.stderr.write(${JSON.stringify(`${secretStderr}\n`)});`, |
| 385 | 384 | "process.exit(2);", |
| 386 | 385 | "", |
| ... | ... | @@ -417,7 +416,6 @@ it.layer(NodeServices.layer)("checkGrokProviderStatus", (it) => { |
| 417 | 416 | " process.exit(0);", |
| 418 | 417 | "}", |
| 419 | 418 | 'if (process.argv[2] === "models") {', |
| 420 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 421 | 419 | ` process.stdout.write(${JSON.stringify(input.modelsOutput)});`, |
| 422 | 420 | " process.exit(0);", |
| 423 | 421 | "}", |
apps/server/src/provider/ProviderInstanceRegistry.test.ts-2| ... | ... | @@ -172,7 +172,6 @@ const makeTildeProviderFixtures = Effect.fn( |
| 172 | 172 | ); |
| 173 | 173 | yield* fileSystem.writeFileString( |
| 174 | 174 | codexScriptPath, |
| 175 | // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed script document read by the external Codex mock peer. | |
| 176 | 175 | JSON.stringify({ rootThreadId: "probe-thread", notifications: [] }), |
| 177 | 176 | ); |
| 178 | 177 | yield* fileSystem.chmod(codexPath, 0o755); |
| ... | ... | @@ -346,7 +345,6 @@ describe("ProviderInstanceRegistry — multi-instance codex slice", () => { |
| 346 | 345 | const fixtures = yield* makeTildeProviderFixtures(); |
| 347 | 346 | yield* fileSystem.writeFileString( |
| 348 | 347 | fixtures.codexScriptPath, |
| 349 | // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed script document read by the external Codex mock peer. | |
| 350 | 348 | JSON.stringify({ |
| 351 | 349 | rootThreadId: "probe-thread", |
| 352 | 350 | notifications: [], |
apps/server/src/pullRequest/AzureDevOpsPullRequestCli.test.ts-9| ... | ... | @@ -228,7 +228,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 228 | 228 | ...row, |
| 229 | 229 | description: "x".repeat(10_000), |
| 230 | 230 | })); |
| 231 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 232 | 231 | const response = JSON.stringify(rows); |
| 233 | 232 | expect(Buffer.byteLength(response)).toBeGreaterThan(1_000_000); |
| 234 | 233 | |
| ... | ... | @@ -341,7 +340,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 341 | 340 | .mockReturnValueOnce( |
| 342 | 341 | Effect.succeed( |
| 343 | 342 | output( |
| 344 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 345 | 343 | JSON.stringify([ |
| 346 | 344 | { pullRequestId: "malformed" }, |
| 347 | 345 | pullRequestRows(1, 1)[0], |
| ... | ... | @@ -434,7 +432,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 434 | 432 | Effect.gen(function* () { |
| 435 | 433 | // `--query user` unwraps the object, so the wrapper has to put it back. |
| 436 | 434 | mockedExecute.mockReturnValueOnce( |
| 437 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 438 | 435 | Effect.succeed(output(JSON.stringify({ name: "bilal@acme.dev", type: "user" }))), |
| 439 | 436 | ); |
| 440 | 437 | const cli = yield* AzureDevOpsPullRequestCli.AzureDevOpsPullRequestCli; |
| ... | ... | @@ -636,7 +633,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 636 | 633 | .mockReturnValueOnce( |
| 637 | 634 | Effect.succeed( |
| 638 | 635 | output( |
| 639 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 640 | 636 | JSON.stringify({ |
| 641 | 637 | pullRequestId: 42, |
| 642 | 638 | title: "Add the page", |
| ... | ... | @@ -653,7 +649,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 653 | 649 | .mockReturnValueOnce( |
| 654 | 650 | Effect.succeed( |
| 655 | 651 | output( |
| 656 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 657 | 652 | JSON.stringify({ |
| 658 | 653 | value: [ |
| 659 | 654 | { |
| ... | ... | @@ -674,7 +669,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 674 | 669 | .mockReturnValueOnce( |
| 675 | 670 | Effect.succeed( |
| 676 | 671 | output( |
| 677 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 678 | 672 | JSON.stringify({ |
| 679 | 673 | changeEntries: [ |
| 680 | 674 | { changeType: "edit", item: { path: "/README.md", objectId: "8f80" } }, |
| ... | ... | @@ -713,7 +707,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 713 | 707 | // pull request read every time they checked whether a file had been pushed to. |
| 714 | 708 | const pullRequest = Effect.succeed( |
| 715 | 709 | output( |
| 716 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 717 | 710 | JSON.stringify({ |
| 718 | 711 | pullRequestId: 42, |
| 719 | 712 | title: "Add the page", |
| ... | ... | @@ -1219,7 +1212,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 1219 | 1212 | mockedExecute.mockReturnValueOnce( |
| 1220 | 1213 | Effect.succeed( |
| 1221 | 1214 | output( |
| 1222 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1223 | 1215 | JSON.stringify({ |
| 1224 | 1216 | value: [ |
| 1225 | 1217 | { |
| ... | ... | @@ -1374,7 +1366,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => { |
| 1374 | 1366 | Effect.succeed( |
| 1375 | 1367 | output( |
| 1376 | 1368 | // Well-formed, but with nothing to build a link from: not a decode failure. |
| 1377 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1378 | 1369 | JSON.stringify({ |
| 1379 | 1370 | pullRequestId: 42, |
| 1380 | 1371 | title: "Add the page", |
apps/server/src/pullRequest/BitbucketPullRequestApi.test.ts-16| ... | ... | @@ -676,7 +676,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 676 | 676 | expect(call.method).toBe("PUT"); |
| 677 | 677 | expect(call.url).toBe("/repositories/acme/web/pullrequests/7"); |
| 678 | 678 | // Bitbucket's PUT is a partial update, so a field left out of the body is left as it was. |
| 679 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 680 | 679 | expect(JSON.parse(call.body ?? "")).toEqual({ title: "A new title" }); |
| 681 | 680 | }), |
| 682 | 681 | ); |
| ... | ... | @@ -688,7 +687,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 688 | 687 | |
| 689 | 688 | yield* api.updateChangeRequest({ repository: "acme/web", number: 7, body: "New body." }); |
| 690 | 689 | |
| 691 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 692 | 690 | expect(JSON.parse(callAt(0).body ?? "")).toEqual({ description: "New body." }); |
| 693 | 691 | }), |
| 694 | 692 | ); |
| ... | ... | @@ -705,7 +703,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 705 | 703 | body: "New body.", |
| 706 | 704 | }); |
| 707 | 705 | |
| 708 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 709 | 706 | expect(JSON.parse(callAt(0).body ?? "")).toEqual({ |
| 710 | 707 | title: "A new title", |
| 711 | 708 | description: "New body.", |
| ... | ... | @@ -736,7 +733,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 736 | 733 | it.effect("fails the read when Bitbucket answers with something unreadable", () => |
| 737 | 734 | Effect.gen(function* () { |
| 738 | 735 | mockedRequest.mockReturnValueOnce( |
| 739 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 740 | 736 | Effect.succeed(response(JSON.stringify({ error: "nope" }))), |
| 741 | 737 | ); |
| 742 | 738 | const api = yield* BitbucketPullRequestApi.BitbucketPullRequestApi; |
| ... | ... | @@ -769,7 +765,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 769 | 765 | |
| 770 | 766 | it.effect("fails when the credentials belong to no named account", () => |
| 771 | 767 | Effect.gen(function* () { |
| 772 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 773 | 768 | mockedRequest.mockReturnValueOnce(Effect.succeed(response(JSON.stringify({})))); |
| 774 | 769 | const api = yield* BitbucketPullRequestApi.BitbucketPullRequestApi; |
| 775 | 770 | |
| ... | ... | @@ -784,7 +779,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 784 | 779 | mockedRequest.mockReturnValueOnce( |
| 785 | 780 | Effect.succeed( |
| 786 | 781 | response( |
| 787 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 788 | 782 | JSON.stringify({ |
| 789 | 783 | next: "https://api.bitbucket.org/2.0/comments?page=2", |
| 790 | 784 | values: [ |
| ... | ... | @@ -805,7 +799,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 805 | 799 | response( |
| 806 | 800 | // The reply arrives a page after the remark it answers, which is why the threads |
| 807 | 801 | // are only assembled once every page is in hand. |
| 808 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 809 | 802 | JSON.stringify({ |
| 810 | 803 | values: [ |
| 811 | 804 | { |
| ... | ... | @@ -840,7 +833,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 840 | 833 | mockedRequest.mockReturnValue( |
| 841 | 834 | Effect.succeed( |
| 842 | 835 | response( |
| 843 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 844 | 836 | JSON.stringify({ |
| 845 | 837 | next: "https://api.bitbucket.org/2.0/comments?page=2", |
| 846 | 838 | values: [ |
| ... | ... | @@ -868,7 +860,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 868 | 860 | mockedRequest.mockReturnValueOnce( |
| 869 | 861 | Effect.succeed( |
| 870 | 862 | response( |
| 871 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 872 | 863 | JSON.stringify({ |
| 873 | 864 | values: [ |
| 874 | 865 | { |
| ... | ... | @@ -941,7 +932,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 941 | 932 | }); |
| 942 | 933 | |
| 943 | 934 | expect(callAt(0).url).toContain("/pullrequests/7/comments"); |
| 944 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 945 | 935 | expect(JSON.parse(callAt(0).body ?? "")).toEqual({ |
| 946 | 936 | content: { raw: "why remove?" }, |
| 947 | 937 | inline: { path: "src/a.ts", from: 12 }, |
| ... | ... | @@ -988,7 +978,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 988 | 978 | body: "Fixed.", |
| 989 | 979 | }); |
| 990 | 980 | |
| 991 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 992 | 981 | expect(JSON.parse(callAt(0).body ?? "")).toEqual({ |
| 993 | 982 | content: { raw: "Fixed." }, |
| 994 | 983 | parent: { id: 10 }, |
| ... | ... | @@ -1001,7 +990,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 1001 | 990 | mockedRequest.mockReturnValue( |
| 1002 | 991 | Effect.succeed( |
| 1003 | 992 | response( |
| 1004 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1005 | 993 | JSON.stringify({ values: [{ type: "repository_permission", permission: "read" }] }), |
| 1006 | 994 | ), |
| 1007 | 995 | ), |
| ... | ... | @@ -1017,7 +1005,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 1017 | 1005 | |
| 1018 | 1006 | it.effect("escapes a repository name before it goes inside a filter literal", () => |
| 1019 | 1007 | Effect.gen(function* () { |
| 1020 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1021 | 1008 | mockedRequest.mockReturnValue(Effect.succeed(response(JSON.stringify({ values: [] })))); |
| 1022 | 1009 | const api = yield* BitbucketPullRequestApi.BitbucketPullRequestApi; |
| 1023 | 1010 | |
| ... | ... | @@ -1075,7 +1062,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 1075 | 1062 | .mockReturnValueOnce( |
| 1076 | 1063 | Effect.succeed( |
| 1077 | 1064 | response( |
| 1078 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1079 | 1065 | JSON.stringify({ values: [{ user: bilal }, { user: octocat }, { user: hubot }] }), |
| 1080 | 1066 | ), |
| 1081 | 1067 | ), |
| ... | ... | @@ -1113,7 +1099,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 1113 | 1099 | const call = callAt(1); |
| 1114 | 1100 | expect(call.method).toBe("PUT"); |
| 1115 | 1101 | expect(call.url).toBe("/repositories/acme/web/pullrequests/7"); |
| 1116 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1117 | 1102 | expect(JSON.parse(call.body ?? "")).toEqual({ |
| 1118 | 1103 | reviewers: [{ uuid: "{octocat}" }, { uuid: "{hubot}" }], |
| 1119 | 1104 | }); |
| ... | ... | @@ -1136,7 +1121,6 @@ layer("BitbucketPullRequestApi.layer", (it) => { |
| 1136 | 1121 | requested: false, |
| 1137 | 1122 | }); |
| 1138 | 1123 | |
| 1139 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1140 | 1124 | expect(JSON.parse(callAt(1).body ?? "")).toEqual({ reviewers: [{ uuid: "{octocat}" }] }); |
| 1141 | 1125 | }), |
| 1142 | 1126 | ); |
apps/server/src/pullRequest/GitHubPullRequestCli.test.ts-1| ... | ... | @@ -789,7 +789,6 @@ layer("GitHubPullRequestCli.layer", (it) => { |
| 789 | 789 | mockedExecute.mockReturnValueOnce( |
| 790 | 790 | Effect.succeed( |
| 791 | 791 | output( |
| 792 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 793 | 792 | JSON.stringify({ |
| 794 | 793 | data: { w0: { pullRequest: node(1) }, w1: { pullRequest: null } }, |
| 795 | 794 | }), |
apps/server/src/pullRequest/GitLabPullRequestCli.test.ts+2-38| ... | ... | @@ -226,10 +226,8 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 226 | 226 | |
| 227 | 227 | it.effect("advances the cursor through malformed raw rows", () => |
| 228 | 228 | Effect.gen(function* () { |
| 229 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 230 | 229 | const rows = JSON.parse(mergeRequests(2, 1)) as ReadonlyArray<unknown>; |
| 231 | 230 | mockedExecute.mockReturnValueOnce( |
| 232 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 233 | 231 | Effect.succeed(output(JSON.stringify([{ iid: "malformed" }, ...rows]))), |
| 234 | 232 | ); |
| 235 | 233 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| ... | ... | @@ -314,7 +312,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 314 | 312 | Effect.gen(function* () { |
| 315 | 313 | // Full pages of unusable rows: nothing is collected, so the collected-count bound never |
| 316 | 314 | // trips and only the page bound can end the walk. |
| 317 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 318 | 315 | const unusable = JSON.stringify(Array.from({ length: 100 }, () => ({ iid: "nope" }))); |
| 319 | 316 | mockedExecute.mockReturnValue(Effect.succeed(output(unusable))); |
| 320 | 317 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| ... | ... | @@ -627,7 +624,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 627 | 624 | it.effect("reports a commit with no parent as a structured error", () => |
| 628 | 625 | Effect.gen(function* () { |
| 629 | 626 | mockedExecute.mockReturnValueOnce( |
| 630 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 631 | 627 | Effect.succeed(output(JSON.stringify({ id: "a1b2c3d", parent_ids: [] }))), |
| 632 | 628 | ); |
| 633 | 629 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| ... | ... | @@ -654,7 +650,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 654 | 650 | it.effect("expands a new file from a root commit without requiring a parent", () => |
| 655 | 651 | Effect.gen(function* () { |
| 656 | 652 | mockedExecute.mockReturnValueOnce( |
| 657 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 658 | 653 | Effect.succeed(output(JSON.stringify({ id: "a1b2c3d", parent_ids: [] }))), |
| 659 | 654 | ); |
| 660 | 655 | mockedExecute.mockReturnValueOnce(Effect.succeed(output("first contents\n"))); |
| ... | ... | @@ -680,7 +675,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 680 | 675 | mockedExecute.mockReturnValueOnce( |
| 681 | 676 | Effect.succeed( |
| 682 | 677 | output( |
| 683 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 684 | 678 | JSON.stringify({ |
| 685 | 679 | diff_refs: { |
| 686 | 680 | base_sha: "a1b2c3d", |
| ... | ... | @@ -718,7 +712,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 718 | 712 | mockedExecute.mockReturnValueOnce( |
| 719 | 713 | Effect.succeed( |
| 720 | 714 | output( |
| 721 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 722 | 715 | JSON.stringify({ |
| 723 | 716 | diff_refs: { |
| 724 | 717 | base_sha: "a1b2c3d", |
| ... | ... | @@ -758,7 +751,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 758 | 751 | mockedExecute.mockReturnValueOnce( |
| 759 | 752 | Effect.succeed( |
| 760 | 753 | output( |
| 761 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 762 | 754 | JSON.stringify({ |
| 763 | 755 | diff_refs: { |
| 764 | 756 | base_sha: "a1b2c3d", |
| ... | ... | @@ -823,7 +815,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 823 | 815 | it.effect("offers no squash when the project does not say it allows one", () => |
| 824 | 816 | Effect.gen(function* () { |
| 825 | 817 | mockedExecute.mockReturnValueOnce( |
| 826 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 827 | 818 | Effect.succeed(output(JSON.stringify({ merge_method: "merge" }))), |
| 828 | 819 | ); |
| 829 | 820 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| ... | ... | @@ -840,7 +831,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 840 | 831 | it.effect("reads the project's merge settings as its merge capabilities", () => |
| 841 | 832 | Effect.gen(function* () { |
| 842 | 833 | mockedExecute.mockReturnValueOnce( |
| 843 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 844 | 834 | Effect.succeed(output(JSON.stringify({ merge_method: "ff", squash_option: "never" }))), |
| 845 | 835 | ); |
| 846 | 836 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| ... | ... | @@ -884,7 +874,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 884 | 874 | |
| 885 | 875 | it.effect("fails when the authenticated account has no username", () => |
| 886 | 876 | Effect.gen(function* () { |
| 887 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 888 | 877 | mockedExecute.mockReturnValueOnce(Effect.succeed(output(JSON.stringify({ username: "" })))); |
| 889 | 878 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| 890 | 879 | |
| ... | ... | @@ -935,7 +924,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 935 | 924 | mockedExecute.mockReturnValueOnce( |
| 936 | 925 | Effect.succeed( |
| 937 | 926 | output( |
| 938 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 939 | 927 | JSON.stringify([ |
| 940 | 928 | { |
| 941 | 929 | id: "abc123", |
| ... | ... | @@ -994,7 +982,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 994 | 982 | mockedExecute.mockReturnValueOnce( |
| 995 | 983 | Effect.succeed( |
| 996 | 984 | output( |
| 997 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 998 | 985 | JSON.stringify({ |
| 999 | 986 | iid: 7, |
| 1000 | 987 | title: "t", |
| ... | ... | @@ -1030,7 +1017,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1030 | 1017 | // The diff revisions first, because a positioned comment cannot be placed without them. |
| 1031 | 1018 | expect(argsOfCall(0)[1]).toContain("merge_requests/7"); |
| 1032 | 1019 | expect(argsOfCall(1)[1]).toContain("/discussions"); |
| 1033 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1034 | 1020 | expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({ |
| 1035 | 1021 | body: "why remove?", |
| 1036 | 1022 | position: { |
| ... | ... | @@ -1086,7 +1072,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1086 | 1072 | expect(argsOfCall(0)).toContain("--method"); |
| 1087 | 1073 | expect(argsOfCall(0)).toContain("PUT"); |
| 1088 | 1074 | expect(argsOfCall(0)[1]).toContain("/discussions/abc123"); |
| 1089 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1090 | 1075 | expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({ resolved: true }); |
| 1091 | 1076 | }), |
| 1092 | 1077 | ); |
| ... | ... | @@ -1117,13 +1102,11 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1117 | 1102 | it.effect("removes an award by listing them and deleting the reader's own id", () => |
| 1118 | 1103 | Effect.gen(function* () { |
| 1119 | 1104 | mockedExecute.mockReturnValueOnce( |
| 1120 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1121 | 1105 | Effect.succeed(output(JSON.stringify({ username: "bilal" }))), |
| 1122 | 1106 | ); |
| 1123 | 1107 | mockedExecute.mockReturnValueOnce( |
| 1124 | 1108 | Effect.succeed( |
| 1125 | 1109 | output( |
| 1126 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1127 | 1110 | JSON.stringify([ |
| 1128 | 1111 | { id: 5, name: "thumbsup", user: { username: "bilal" } }, |
| 1129 | 1112 | { id: 6, name: "thumbsup", user: { username: "julius" } }, |
| ... | ... | @@ -1155,7 +1138,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1155 | 1138 | it.effect("does nothing when the reader has no award of that name to take back", () => |
| 1156 | 1139 | Effect.gen(function* () { |
| 1157 | 1140 | mockedExecute.mockReturnValueOnce( |
| 1158 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1159 | 1141 | Effect.succeed(output(JSON.stringify({ username: "bilal" }))), |
| 1160 | 1142 | ); |
| 1161 | 1143 | mockedExecute.mockReturnValueOnce(Effect.succeed(output("[]"))); |
| ... | ... | @@ -1179,7 +1161,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1179 | 1161 | mockedExecute.mockReturnValueOnce( |
| 1180 | 1162 | Effect.succeed( |
| 1181 | 1163 | output( |
| 1182 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1183 | 1164 | JSON.stringify({ |
| 1184 | 1165 | iid: 7, |
| 1185 | 1166 | title: "t", |
| ... | ... | @@ -1217,10 +1198,7 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1217 | 1198 | mockedExecute |
| 1218 | 1199 | .mockReturnValueOnce(Effect.succeed(output(mergeRequestJson({ reviewers: [reviewer] })))) |
| 1219 | 1200 | .mockReturnValueOnce( |
| 1220 | Effect.succeed( | |
| 1221 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1222 | output(JSON.stringify([author, reviewer, { id: 9, username: "hubot" }])), | |
| 1223 | ), | |
| 1201 | Effect.succeed(output(JSON.stringify([author, reviewer, { id: 9, username: "hubot" }]))), | |
| 1224 | 1202 | ); |
| 1225 | 1203 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| 1226 | 1204 | |
| ... | ... | @@ -1258,7 +1236,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1258 | 1236 | // GitLab replaces the whole set, so the reviewer already on the merge request has to be |
| 1259 | 1237 | // sent back with the new one or the request would take them off it. |
| 1260 | 1238 | expect(argsOfCall(1)).toContain("PUT"); |
| 1261 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1262 | 1239 | expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({ reviewer_ids: [5, 9] }); |
| 1263 | 1240 | }), |
| 1264 | 1241 | ); |
| ... | ... | @@ -1282,7 +1259,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1282 | 1259 | requested: false, |
| 1283 | 1260 | }); |
| 1284 | 1261 | |
| 1285 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1286 | 1262 | expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({ reviewer_ids: [5] }); |
| 1287 | 1263 | }), |
| 1288 | 1264 | ); |
| ... | ... | @@ -1303,7 +1279,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1303 | 1279 | }); |
| 1304 | 1280 | |
| 1305 | 1281 | // Sending it as a number would rewrite the reviewer set around something nobody chose. |
| 1306 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1307 | 1282 | expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({ reviewer_ids: [5] }); |
| 1308 | 1283 | }), |
| 1309 | 1284 | ); |
| ... | ... | @@ -1330,7 +1305,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1330 | 1305 | "--header", |
| 1331 | 1306 | "Content-Type: application/json", |
| 1332 | 1307 | ]); |
| 1333 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1334 | 1308 | expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({ title: "A better title" }); |
| 1335 | 1309 | }), |
| 1336 | 1310 | ); |
| ... | ... | @@ -1348,7 +1322,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1348 | 1322 | }); |
| 1349 | 1323 | |
| 1350 | 1324 | // A title sent as an empty string would wipe the one the merge request already has. |
| 1351 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1352 | 1325 | expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({ description: "What this changes." }); |
| 1353 | 1326 | }), |
| 1354 | 1327 | ); |
| ... | ... | @@ -1367,7 +1340,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1367 | 1340 | }); |
| 1368 | 1341 | |
| 1369 | 1342 | assert.strictEqual(mockedExecute.mock.calls.length, 1); |
| 1370 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1371 | 1343 | expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({ |
| 1372 | 1344 | title: "A better title", |
| 1373 | 1345 | description: "What this changes.", |
| ... | ... | @@ -1407,7 +1379,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1407 | 1379 | mockedExecute.mockReturnValueOnce( |
| 1408 | 1380 | Effect.succeed( |
| 1409 | 1381 | output( |
| 1410 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1411 | 1382 | JSON.stringify({ |
| 1412 | 1383 | iid: 7, |
| 1413 | 1384 | title: "t", |
| ... | ... | @@ -1424,7 +1395,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1424 | 1395 | mockedExecute.mockReturnValueOnce( |
| 1425 | 1396 | Effect.succeed( |
| 1426 | 1397 | output( |
| 1427 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1428 | 1398 | JSON.stringify({ |
| 1429 | 1399 | data: { |
| 1430 | 1400 | project: { repository: { blobs: { nodes: [{ path: "src/a.ts", oid: "aaa" }] } } }, |
| ... | ... | @@ -1449,7 +1419,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1449 | 1419 | ["src/gone.ts", ""], |
| 1450 | 1420 | ]); |
| 1451 | 1421 | // The head the reader is looking at, not whatever the source branch has moved on to. |
| 1452 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1453 | 1422 | const body: unknown = JSON.parse(callAt(1).stdin ?? "{}"); |
| 1454 | 1423 | expect(body).toMatchObject({ |
| 1455 | 1424 | variables: { fullPath: "acme/web", ref: "head", paths: ["src/a.ts", "src/gone.ts"] }, |
| ... | ... | @@ -1462,7 +1431,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1462 | 1431 | mockedExecute.mockReturnValueOnce( |
| 1463 | 1432 | Effect.succeed( |
| 1464 | 1433 | output( |
| 1465 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1466 | 1434 | JSON.stringify({ |
| 1467 | 1435 | iid: 7, |
| 1468 | 1436 | title: "t", |
| ... | ... | @@ -1480,10 +1448,7 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1480 | 1448 | // these files, and reading it that way would report every file the reader has cleared as |
| 1481 | 1449 | // changed on nothing worse than a permission. |
| 1482 | 1450 | mockedExecute.mockReturnValueOnce( |
| 1483 | Effect.succeed( | |
| 1484 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1485 | output(JSON.stringify({ data: { project: null } })), | |
| 1486 | ), | |
| 1451 | Effect.succeed(output(JSON.stringify({ data: { project: null } }))), | |
| 1487 | 1452 | ); |
| 1488 | 1453 | const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli; |
| 1489 | 1454 | |
| ... | ... | @@ -1520,7 +1485,6 @@ layer("GitLabPullRequestCli.layer", (it) => { |
| 1520 | 1485 | mockedExecute.mockReturnValueOnce( |
| 1521 | 1486 | Effect.succeed( |
| 1522 | 1487 | output( |
| 1523 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1524 | 1488 | JSON.stringify({ |
| 1525 | 1489 | iid: 7, |
| 1526 | 1490 | title: "t", |
apps/server/src/serverSettings.test.ts+1-11| ... | ... | @@ -578,7 +578,6 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 578 | 578 | const change = Option.getOrUndefined(yield* Stream.runHead(changes)); |
| 579 | 579 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 580 | 580 | // Inspect raw persisted JSON before schema decoding can apply defaults. |
| 581 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 582 | 581 | const persisted = JSON.parse(raw) as Record<string, unknown>; |
| 583 | 582 | |
| 584 | 583 | assert.strictEqual(next.sidebarAutoSettleAfterDays, null); |
| ... | ... | @@ -759,7 +758,6 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 759 | 758 | |
| 760 | 759 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 761 | 760 | assert.deepEqual( |
| 762 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 763 | 761 | JSON.parse(raw).sourceControlWriterModelSelection, |
| 764 | 762 | sourceControlWriterModelSelection, |
| 765 | 763 | ); |
| ... | ... | @@ -1046,7 +1044,6 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 1046 | 1044 | assert.isFalse(settings.providers.grok.enabled); |
| 1047 | 1045 | |
| 1048 | 1046 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 1049 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1050 | 1047 | assert.isFalse(JSON.parse(raw).providers.grok.enabled); |
| 1051 | 1048 | }).pipe(Effect.provide(layerServerSettings())), |
| 1052 | 1049 | ); |
| ... | ... | @@ -1067,7 +1064,6 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 1067 | 1064 | yield* serverSettings.updateSettings({ addProjectBaseDirectory: "~/Development" }); |
| 1068 | 1065 | |
| 1069 | 1066 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 1070 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1071 | 1067 | const persisted = JSON.parse(raw); |
| 1072 | 1068 | assert.isTrue(persisted.providers.cursor.enabled); |
| 1073 | 1069 | assert.isTrue(persisted.providers.grok.enabled); |
| ... | ... | @@ -1104,7 +1100,6 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 1104 | 1100 | assert.isFalse(resolveProviderInstanceEnabled(grok)); |
| 1105 | 1101 | |
| 1106 | 1102 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 1107 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1108 | 1103 | const persisted = JSON.parse(raw); |
| 1109 | 1104 | assert.isFalse(persisted.providers.cursor.enabled); |
| 1110 | 1105 | assert.isFalse(persisted.providers.grok.enabled); |
| ... | ... | @@ -1288,7 +1283,6 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 1288 | 1283 | assert.equal(next.providers.codex.binaryPath, "/opt/homebrew/bin/codex"); |
| 1289 | 1284 | |
| 1290 | 1285 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 1291 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1292 | 1286 | assert.deepEqual(JSON.parse(raw), { |
| 1293 | 1287 | addProjectBaseDirectory: "~/Development", |
| 1294 | 1288 | observability: { |
| ... | ... | @@ -1506,7 +1500,6 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 1506 | 1500 | |
| 1507 | 1501 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 1508 | 1502 | assert.notInclude(raw, "sk-or-secret"); |
| 1509 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1510 | 1503 | assert.deepEqual(JSON.parse(raw).providerInstances.codex_personal.environment, [ |
| 1511 | 1504 | { |
| 1512 | 1505 | name: "OPENROUTER_API_KEY", |
| ... | ... | @@ -1992,10 +1985,7 @@ it.layer(NodeServices.layer)("server settings", (it) => { |
| 1992 | 1985 | projectSettingsOverrides: { [legacyProject]: null }, |
| 1993 | 1986 | }); |
| 1994 | 1987 | const raw = yield* fileSystem.readFileString(serverConfig.settingsPath); |
| 1995 | const persisted = yield* decodeServerSettings( | |
| 1996 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 1997 | JSON.parse(raw), | |
| 1998 | ); | |
| 1988 | const persisted = yield* decodeServerSettings(JSON.parse(raw)); | |
| 1999 | 1989 | assert.isTrue(persisted.projectSettingsFolded); |
| 2000 | 1990 | assert.isUndefined(persisted.projectSettingsOverrides[legacyProject]); |
| 2001 | 1991 | }).pipe(Effect.provide(layerServerSettings())), |
apps/server/src/serviceLauncher.test.ts-3| ... | ... | @@ -198,7 +198,6 @@ it.layer(NodeServices.layer)("service state persistence", (it) => { |
| 198 | 198 | const databasePath = path.join(root, "userdata", "state.sqlite"); |
| 199 | 199 | yield* fs.makeDirectory(path.dirname(databasePath), { recursive: true }); |
| 200 | 200 | yield* fs.writeFileString(databasePath, "before trial"); |
| 201 | // @effect-diagnostics-next-line preferSchemaOverJson:off - embeds a path in fake child source. | |
| 202 | 201 | const encodedDatabasePath = JSON.stringify(databasePath); |
| 203 | 202 | const childSource = ` |
| 204 | 203 | const context = JSON.parse(process.env.T3_SERVICE_LAUNCHER_CONTEXT); |
| ... | ... | @@ -252,7 +251,6 @@ if (context.update?.status === "pending") { |
| 252 | 251 | const databasePath = path.join(root, "userdata", "state.sqlite"); |
| 253 | 252 | yield* fs.makeDirectory(path.dirname(databasePath), { recursive: true }); |
| 254 | 253 | yield* fs.writeFileString(databasePath, "before trial"); |
| 255 | // @effect-diagnostics-next-line preferSchemaOverJson:off - embeds a path in fake child source. | |
| 256 | 254 | const encodedDatabasePath = JSON.stringify(databasePath); |
| 257 | 255 | const childSource = ` |
| 258 | 256 | const context = JSON.parse(process.env.T3_SERVICE_LAUNCHER_CONTEXT); |
| ... | ... | @@ -308,7 +306,6 @@ if (context.update?.status === "pending") { |
| 308 | 306 | const original = "database before migration"; |
| 309 | 307 | yield* fs.makeDirectory(path.dirname(databasePath), { recursive: true }); |
| 310 | 308 | yield* fs.writeFileString(databasePath, original); |
| 311 | // @effect-diagnostics-next-line preferSchemaOverJson:off - embeds a path in fake child source. | |
| 312 | 309 | const encodedDatabasePath = JSON.stringify(databasePath); |
| 313 | 310 | const childSource = ` |
| 314 | 311 | import { writeFileSync } from "node:fs"; |
apps/server/src/sourceControl/AzureDevOpsCli.test.ts-5| ... | ... | @@ -39,7 +39,6 @@ describe("AzureDevOpsCli.layer", () => { |
| 39 | 39 | mockRun.mockReturnValueOnce( |
| 40 | 40 | Effect.succeed( |
| 41 | 41 | processOutput( |
| 42 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 43 | 42 | JSON.stringify({ |
| 44 | 43 | pullRequestId: 42, |
| 45 | 44 | title: "Add Azure provider", |
| ... | ... | @@ -97,7 +96,6 @@ describe("AzureDevOpsCli.layer", () => { |
| 97 | 96 | mockRun.mockReturnValueOnce( |
| 98 | 97 | Effect.succeed( |
| 99 | 98 | processOutput( |
| 100 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 101 | 99 | JSON.stringify({ |
| 102 | 100 | pullRequestId: 863, |
| 103 | 101 | title: "Fix Azure link", |
| ... | ... | @@ -134,7 +132,6 @@ describe("AzureDevOpsCli.layer", () => { |
| 134 | 132 | mockRun.mockReturnValueOnce( |
| 135 | 133 | Effect.succeed( |
| 136 | 134 | processOutput( |
| 137 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 138 | 135 | JSON.stringify([ |
| 139 | 136 | { |
| 140 | 137 | pullRequestId: 7, |
| ... | ... | @@ -195,7 +192,6 @@ describe("AzureDevOpsCli.layer", () => { |
| 195 | 192 | mockRun.mockReturnValueOnce( |
| 196 | 193 | Effect.succeed( |
| 197 | 194 | processOutput( |
| 198 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 199 | 195 | JSON.stringify({ |
| 200 | 196 | name: "repo", |
| 201 | 197 | webUrl: "https://dev.azure.com/acme/project/_git/repo", |
| ... | ... | @@ -228,7 +224,6 @@ describe("AzureDevOpsCli.layer", () => { |
| 228 | 224 | mockRun.mockReturnValueOnce( |
| 229 | 225 | Effect.succeed( |
| 230 | 226 | processOutput( |
| 231 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 232 | 227 | JSON.stringify({ |
| 233 | 228 | name: "repo", |
| 234 | 229 | webUrl: "https://dev.azure.com/acme/project/_git/repo", |
apps/server/src/sourceControl/BitbucketApi.test.ts-2| ... | ... | @@ -541,7 +541,6 @@ it.effect("creates repositories through the Bitbucket REST API", () => { |
| 541 | 541 | assert.ok(request); |
| 542 | 542 | const rawBody = (request.body as { readonly body?: Uint8Array }).body; |
| 543 | 543 | assert.ok(rawBody); |
| 544 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 545 | 544 | assert.deepStrictEqual(JSON.parse(new TextDecoder().decode(rawBody)), { |
| 546 | 545 | scm: "git", |
| 547 | 546 | is_private: true, |
| ... | ... | @@ -577,7 +576,6 @@ it.effect("creates pull requests using the official REST payload shape", () => { |
| 577 | 576 | assert.ok(request); |
| 578 | 577 | const rawBody = (request.body as { readonly body?: Uint8Array }).body; |
| 579 | 578 | assert.ok(rawBody); |
| 580 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 581 | 579 | assert.deepStrictEqual(JSON.parse(new TextDecoder().decode(rawBody)), { |
| 582 | 580 | title: "Provider PR", |
| 583 | 581 | description: "PR body", |
apps/server/src/sourceControl/GitLabCli.test.ts+1-12| ... | ... | @@ -39,7 +39,6 @@ layer("GitLabCli.layer", (it) => { |
| 39 | 39 | mockedRun.mockReturnValueOnce( |
| 40 | 40 | Effect.succeed( |
| 41 | 41 | processOutput( |
| 42 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 43 | 42 | JSON.stringify({ |
| 44 | 43 | iid: 42, |
| 45 | 44 | title: "Add MR thread creation", |
| ... | ... | @@ -94,7 +93,6 @@ layer("GitLabCli.layer", (it) => { |
| 94 | 93 | mockedRun.mockReturnValueOnce( |
| 95 | 94 | Effect.succeed( |
| 96 | 95 | processOutput( |
| 97 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 98 | 96 | JSON.stringify([ |
| 99 | 97 | { |
| 100 | 98 | iid: 0, |
| ... | ... | @@ -163,7 +161,6 @@ layer("GitLabCli.layer", (it) => { |
| 163 | 161 | mockedRun.mockReturnValueOnce( |
| 164 | 162 | Effect.succeed( |
| 165 | 163 | processOutput( |
| 166 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 167 | 164 | JSON.stringify({ |
| 168 | 165 | path_with_namespace: "octocat/t3code", |
| 169 | 166 | web_url: "https://gitlab.com/octocat/t3code", |
| ... | ... | @@ -230,18 +227,10 @@ layer("GitLabCli.layer", (it) => { |
| 230 | 227 | Effect.gen(function* () { |
| 231 | 228 | mockedRun |
| 232 | 229 | |
| 230 | .mockReturnValueOnce(Effect.succeed(processOutput(JSON.stringify({ id: 1234 })))) | |
| 233 | 231 | .mockReturnValueOnce( |
| 234 | 232 | Effect.succeed( |
| 235 | 233 | processOutput( |
| 236 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 237 | JSON.stringify({ id: 1234 }), | |
| 238 | ), | |
| 239 | ), | |
| 240 | ) | |
| 241 | .mockReturnValueOnce( | |
| 242 | Effect.succeed( | |
| 243 | processOutput( | |
| 244 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 245 | 234 | JSON.stringify({ |
| 246 | 235 | path_with_namespace: "octocat/t3code", |
| 247 | 236 | web_url: "https://gitlab.com/octocat/t3code", |
apps/server/src/textGeneration/ClaudeTextGeneration.test.ts-1| ... | ... | @@ -367,7 +367,6 @@ it.layer(layerClaudeTextGenerationTest)("ClaudeTextGeneration", (it) => { |
| 367 | 367 | const claudeConfigDir = path.join(process.cwd(), ".claude-work-test"); |
| 368 | 368 | return yield* withFakeClaudeEnv( |
| 369 | 369 | { |
| 370 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 371 | 370 | output: JSON.stringify({ |
| 372 | 371 | structured_output: { |
| 373 | 372 | title: "Use Claude home", |
apps/server/src/vcs/VcsProjectConfig.test.ts-2| ... | ... | @@ -42,7 +42,6 @@ describe("VcsProjectConfig", () => { |
| 42 | 42 | yield* fileSystem.makeDirectory(nested, { recursive: true }); |
| 43 | 43 | yield* fileSystem.writeFileString( |
| 44 | 44 | path.join(configDir, "vcs.json"), |
| 45 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 46 | 45 | JSON.stringify({ vcs: { kind: "jj" } }), |
| 47 | 46 | ); |
| 48 | 47 | |
| ... | ... | @@ -72,7 +71,6 @@ describe("VcsProjectConfig", () => { |
| 72 | 71 | yield* fileSystem.makeDirectory(configDir, { recursive: true }); |
| 73 | 72 | yield* fileSystem.writeFileString( |
| 74 | 73 | path.join(configDir, "vcs.json"), |
| 75 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 76 | 74 | JSON.stringify({ vcs: { kind: "jj" } }), |
| 77 | 75 | ); |
| 78 | 76 |
apps/web/src/cloud/linkEnvironment.test.ts-4| ... | ... | @@ -240,7 +240,6 @@ describe("web cloud link environment client", () => { |
| 240 | 240 | "http://127.0.0.1:3000/api/connect/preferences", |
| 241 | 241 | ); |
| 242 | 242 | expect(fetchMock.mock.calls[0]?.[1]?.method).toBe("POST"); |
| 243 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 244 | 243 | expect(JSON.parse(bodyText(fetchMock.mock.calls[0]?.[1]?.body))).toEqual({ |
| 245 | 244 | publishAgentActivity: true, |
| 246 | 245 | }); |
| ... | ... | @@ -290,7 +289,6 @@ describe("web cloud link environment client", () => { |
| 290 | 289 | expect(String(fetchMock.mock.calls[1]?.[0])).toBe( |
| 291 | 290 | "http://127.0.0.1:3000/api/connect/link-proof", |
| 292 | 291 | ); |
| 293 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 294 | 292 | expect(JSON.parse(bodyText(fetchMock.mock.calls[1]?.[1]?.body))).toMatchObject({ |
| 295 | 293 | challenge: "challenge", |
| 296 | 294 | endpoint: { |
| ... | ... | @@ -341,11 +339,9 @@ describe("web cloud link environment client", () => { |
| 341 | 339 | }), |
| 342 | 340 | ); |
| 343 | 341 | |
| 344 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 345 | 342 | expect(JSON.parse(bodyText(fetchMock.mock.calls[0]?.[1]?.body))).toMatchObject({ |
| 346 | 343 | managedTunnelsEnabled: false, |
| 347 | 344 | }); |
| 348 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 349 | 345 | expect(JSON.parse(bodyText(fetchMock.mock.calls[1]?.[1]?.body))).toMatchObject({ |
| 350 | 346 | endpoint: { providerKind: "manual" }, |
| 351 | 347 | }); |
packages/client-runtime/src/state/pullRequestDiffHttp.test.ts-1| ... | ... | @@ -71,7 +71,6 @@ describe("fetchEnvironmentPullRequestDiff", () => { |
| 71 | 71 | : ""; |
| 72 | 72 | // The assertion deliberately inspects the serialized wire body rather than decoding a |
| 73 | 73 | // domain value for use in application code. |
| 74 | // @effect-diagnostics-next-line preferSchemaOverJson:off | |
| 75 | 74 | expect(JSON.parse(body)).toEqual({ |
| 76 | 75 | projectId: "project-1", |
| 77 | 76 | repository: "owner/repository", |
tsconfig.base.json+7-1| ... | ... | @@ -51,7 +51,13 @@ |
| 51 | 51 | "globalFetch": "error", |
| 52 | 52 | "globalFetchInEffect": "error", |
| 53 | 53 | "schemaNumber": "off" |
| 54 | } | |
| 54 | }, | |
| 55 | "overrides": [ | |
| 56 | { | |
| 57 | "include": ["**/*.test.ts", "**/*.test.tsx"], | |
| 58 | "options": { "diagnosticSeverity": { "preferSchemaOverJson": "off" } } | |
| 59 | } | |
| 60 | ] | |
| 55 | 61 | } |
| 56 | 62 | ] |
| 57 | 63 | } |