@devries-cameron20 / t3code Mirror · read-only / commits / 7bee189dfb
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 18:00 UTC

chore(tsconfig): turn off the Schema-over-JSON diagnostic in test files (#16375)

Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Erik Thorelli committed Oct 6, 2026 at 14:26 UTC 7bee189dfb5cd6807457e98af0c2f95f5ed50edd
32 files changed +14 -192
apps/mobile/src/features/cloud/linkEnvironment.test.ts
-2
@@ -293,7 +293,6 @@ describe("mobile cloud link environment client", () => {
293 const bodies: Array<unknown> = [];
294 const fetchMock = vi.fn((url: string | URL, init?: RequestInit) => {
295 if (init?.body) {
296 - // @effect-diagnostics-next-line preferSchemaOverJson:off
296 bodies.push(JSON.parse(requestBodyText(init.body)));
297 }
298 if (String(url).endsWith("/v1/client/environment-link-challenges")) {
@@ -348,7 +347,6 @@ describe("mobile cloud link environment client", () => {
347 const bodies: Array<Record<string, unknown>> = [];
348 const fetchMock = vi.fn((url: string | URL, init?: RequestInit) => {
349 if (init?.body) {
351 - // @effect-diagnostics-next-line preferSchemaOverJson:off
350 bodies.push(JSON.parse(requestBodyText(init.body)) as Record<string, unknown>);
351 }
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 yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
651 yield* fs.writeFileString(
652 derivedPaths.settingsPath,
653 - // @effect-diagnostics-next-line preferSchemaOverJson:off
653 `${JSON.stringify({
654 observability: {
655 otlpTracesUrl: "http://localhost:4318/v1/traces",
@@ -722,7 +721,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
721 yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
722 yield* fs.writeFileString(
723 derivedPaths.settingsPath,
725 - // @effect-diagnostics-next-line preferSchemaOverJson:off
724 `${JSON.stringify({
725 observability: {
726 otlpTracesUrl: "http://localhost:4318/v1/traces",
@@ -774,7 +772,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
772 yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
773 yield* fs.writeFileString(
774 derivedPaths.settingsPath,
777 - // @effect-diagnostics-next-line preferSchemaOverJson:off
775 `${JSON.stringify({
776 observability: {
777 otlpTracesUrl: "http://localhost:4318/v1/traces",
@@ -1073,7 +1070,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
1070 yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
1071 yield* fs.writeFileString(
1072 derivedPaths.settingsPath,
1076 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1073 `${JSON.stringify({ observability: { otlpLogsUrl: "http://settings:4318/v1/logs" } })}\n`,
1074 );
1075
@@ -1145,7 +1141,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
1141 yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
1142 yield* fs.writeFileString(
1143 derivedPaths.settingsPath,
1148 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1144 `${JSON.stringify({ observability: { otlpLogsUrl: "http://settings:4318/v1/logs" } })}\n`,
1145 );
1146
apps/server/src/cli/pair.test.ts
-1
@@ -173,7 +173,6 @@ describe("t3 pair", () => {
173 const listed = yield* captureStdout(
174 runCli(["auth", "pairing", "list", "--base-dir", baseDir, "--json"]),
175 );
176 - // @effect-diagnostics-next-line preferSchemaOverJson:off - CLI JSON output is decoded as a presentation DTO.
176 const credentials = JSON.parse(listed) as ReadonlyArray<{ readonly label?: string }>;
177 assert.equal(credentials.length, 1);
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 current: true,
360 installedVersion: "1.2.3",
361 });
362 - // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
362 const pendingState = JSON.stringify({
363 protocol: SERVICE_LAUNCHER_PROTOCOL,
364 activeVersion: "1.2.3",
@@ -546,7 +545,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => {
545 Effect.gen(function* () {
546 const { service, fs, statePath } = yield* makeHarness();
547 yield* service.install();
549 - // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
548 const pendingState = JSON.stringify({
549 protocol: SERVICE_LAUNCHER_PROTOCOL,
550 activeVersion: "1.2.3",
@@ -647,7 +645,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => {
645 Effect.gen(function* () {
646 const { service, fs, statePath, commands } = yield* makeHarness();
647 yield* service.install();
650 - // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
648 const pendingState = JSON.stringify({
649 protocol: SERVICE_LAUNCHER_PROTOCOL - 1,
650 activeVersion: "1.2.3",
@@ -808,7 +805,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => {
805 const { service, fs, statePath, commands } = yield* makeHarness("darwin");
806 yield* service.install();
807 const plistPath = (yield* service.status).unitPath;
811 - // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
808 const pendingState = JSON.stringify({
809 protocol: SERVICE_LAUNCHER_PROTOCOL - 1,
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 launcherProtocol: SERVICE_LAUNCHER_PROTOCOL,
85 };
86 return {
87 - // @effect-diagnostics-next-line preferSchemaOverJson:off - fake child-process stdout.
87 stdout: JSON.stringify(result),
88 stderr: "",
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.
1 import { expect, it } from "@effect/vitest";
2 import * as NodeServices from "@effect/platform-node/NodeServices";
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 import * as Effect from "effect/Effect";
3 import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
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 const { manager } = yield* makeManager({
791 ghScenario: {
792 prListSequence: [
793 - // @effect-diagnostics-next-line preferSchemaOverJson:off
793 JSON.stringify([
794 {
795 number: 13,
@@ -835,7 +834,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
834 const { manager } = yield* makeManager({
835 ghScenario: {
836 prListSequence: [
838 - // @effect-diagnostics-next-line preferSchemaOverJson:off
837 JSON.stringify([
838 {
839 number: 14,
@@ -875,7 +873,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
873 const { manager } = yield* makeManager({
874 ghScenario: {
875 prListSequence: [
878 - // @effect-diagnostics-next-line preferSchemaOverJson:off
876 JSON.stringify([
877 {
878 number: 0,
@@ -928,7 +925,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
925 const { manager } = yield* makeManager({
926 ghScenario: {
927 prListSequence: [
931 - // @effect-diagnostics-next-line preferSchemaOverJson:off
928 JSON.stringify([
929 {
930 number: 16,
@@ -1042,7 +1038,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1038 };
1039 const { manager, ghCalls } = yield* makeManager({
1040 ghScenario: {
1045 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1041 prListSequence: [JSON.stringify([existingPr]), JSON.stringify([existingPr])],
1042 },
1043 });
@@ -1095,7 +1090,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1090 ghScenario: {
1091 prListSequence: [
1092 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1098 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1093 JSON.stringify([
1094 {
1095 number: 217,
@@ -1138,7 +1132,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1132 prListSequence: [
1133 "[]",
1134 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1141 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1135 JSON.stringify([
1136 {
1137 number: 114,
@@ -1244,7 +1237,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1237 ghScenario: {
1238 prListSequence: [
1239 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1247 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1240 JSON.stringify([
1241 {
1242 number: 216,
@@ -1296,7 +1288,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1288 ghScenario: {
1289 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1290 prListSequence: [
1299 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1291 JSON.stringify([
1292 {
1293 number: 221,
@@ -1347,7 +1338,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1338 ghScenario: {
1339 prListSequence: [
1340 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1350 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1341 JSON.stringify([
1342 {
1343 number: 217,
@@ -1410,7 +1400,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1400 ghScenario: {
1401 prListByHeadSelector: {
1402 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1413 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1403 "feature/deleted-fork-branch": JSON.stringify([
1404 {
1405 number: 218,
@@ -1492,7 +1481,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1481 ghScenario: {
1482 prListSequence: [
1483 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1495 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1484 JSON.stringify([
1485 {
1486 number: 219,
@@ -1545,7 +1533,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1533 ghScenario: {
1534 prListSequence: [
1535 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
1548 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1536 JSON.stringify([
1537 {
1538 number: 220,
@@ -1719,7 +1706,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1706 const { manager, ghCalls } = yield* makeManager({
1707 ghScenario: {
1708 prListSequence: [
1722 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1709 JSON.stringify([
1710 {
1711 number: 215,
@@ -1768,7 +1754,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1754 const { manager, ghCalls } = yield* makeManager({
1755 ghScenario: {
1756 prListSequence: [
1771 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1757 JSON.stringify([
1758 {
1759 number: 214,
@@ -1991,7 +1976,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
1976 const { manager } = yield* makeManager({
1977 ghScenario: {
1978 prListSequence: [
1994 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1979 JSON.stringify([
1980 {
1981 number: 1661,
@@ -2045,7 +2029,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2029 const { manager, ghCalls } = yield* makeManager({
2030 ghScenario: {
2031 prListSequence: [
2048 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2032 JSON.stringify([
2033 {
2034 number: 488,
@@ -2111,7 +2094,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2094 const { manager, ghCalls } = yield* makeManager({
2095 ghScenario: {
2096 prListByHeadSelector: {
2114 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2097 main: JSON.stringify([
2098 {
2099 number: 777,
@@ -2187,7 +2169,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2169 const { manager, ghCalls } = yield* makeManager({
2170 ghScenario: {
2171 prListByHeadSelector: {
2190 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2172 "effect-atom": JSON.stringify([
2173 {
2174 number: 1618,
@@ -2199,7 +2180,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2180 updatedAt: "2026-03-01T10:00:00Z",
2181 },
2182 ]),
2202 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2183 "upstream/effect-atom": JSON.stringify([
2184 {
2185 number: 1518,
@@ -2250,7 +2230,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2230 const { manager } = yield* makeManager({
2231 ghScenario: {
2232 prListSequence: [
2253 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2233 JSON.stringify([
2234 {
2235 number: 22,
@@ -2289,7 +2268,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2268 const { manager } = yield* makeManager({
2269 ghScenario: {
2270 prListSequence: [
2292 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2271 JSON.stringify([
2272 {
2273 number: 23,
@@ -2325,7 +2303,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2303 const { manager, ghCalls } = yield* makeManager({
2304 ghScenario: {
2305 prListSequence: [
2328 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2306 JSON.stringify([
2307 {
2308 number: 54,
@@ -2365,7 +2342,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2342 ghScenario: {
2343 prListByHeadSelector: {
2344 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
2368 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2345 "feature/pushed-plain": JSON.stringify([
2346 {
2347 number: 88,
@@ -2420,7 +2396,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2396 ghScenario: {
2397 prListByHeadSelector: {
2398 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
2423 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2399 "feature/fork-plain": JSON.stringify([
2400 {
2401 number: 89,
@@ -2476,7 +2451,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2451 ghScenario: {
2452 prListByHeadSelector: {
2453 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
2479 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2454 "feature/fork-settle": JSON.stringify([
2455 {
2456 number: 91,
@@ -2524,7 +2498,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2498 ghScenario: {
2499 prListByHeadSelector: {
2500 // Fake gh returns raw JSON stdout, matching the CLI boundary under test.
2527 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2501 "feature/sticky-plain": JSON.stringify([
2502 {
2503 number: 90,
@@ -2564,7 +2537,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2537 const { manager } = yield* makeManager({
2538 ghScenario: {
2539 prListSequence: [
2567 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2540 JSON.stringify([
2541 {
2542 number: 45,
@@ -2698,7 +2670,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2670 };
2671 const { manager } = yield* makeManager({
2672 ghScenario: {
2701 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2673 prListSequence: [JSON.stringify([existingPr])],
2674 failWith: new GitHubCli.GitHubCliUnavailableError({
2675 command: "gh",
@@ -2742,7 +2713,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2713 };
2714 const { manager } = yield* makeManager({
2715 ghScenario: {
2745 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2716 prListSequence: [JSON.stringify([existingPr])],
2717 failWith: new GitHubCli.GitHubCliUnavailableError({
2718 command: "gh",
@@ -2791,7 +2761,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2761 };
2762 const { manager } = yield* makeManager({
2763 ghScenario: {
2794 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2764 prListSequence: [JSON.stringify([existingPr])],
2765 failWith: new GitHubCli.GitHubCliUnavailableError({
2766 command: "gh",
@@ -2831,7 +2800,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2800 };
2801 const { manager } = yield* makeManager({
2802 ghScenario: {
2834 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2803 prListSequence: [JSON.stringify([existingPr])],
2804 failWith: new GitHubCli.GitHubCliUnavailableError({
2805 command: "gh",
@@ -2874,7 +2842,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
2842 };
2843 const { manager } = yield* makeManager({
2844 ghScenario: {
2877 - // @effect-diagnostics-next-line preferSchemaOverJson:off
2845 prListSequence: [JSON.stringify([existingPr])],
2846 failWith: new GitHubCli.GitHubCliUnavailableError({
2847 command: "gh",
@@ -3469,7 +3436,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3436 ghScenario: {
3437 prListSequence: [
3438 "[]",
3472 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3439 JSON.stringify([
3440 {
3441 number: 77,
@@ -3605,7 +3571,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3571 ghScenario: {
3572 prListSequence: [
3573 "[]",
3608 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3574 JSON.stringify([
3575 {
3576 number: 303,
@@ -3652,7 +3617,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3617 ghScenario: {
3618 prListSequence: [
3619 "[]",
3655 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3620 JSON.stringify([
3621 {
3622 number: 404,
@@ -3704,7 +3668,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3668 defaultBranch: "",
3669 prListSequence: [
3670 "[]",
3707 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3671 JSON.stringify([
3672 {
3673 number: 505,
@@ -3744,7 +3707,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3707 const { manager, ghCalls } = yield* makeManager({
3708 ghScenario: {
3709 prListSequence: [
3747 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3710 JSON.stringify([
3711 {
3712 number: 42,
@@ -3798,7 +3760,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3760 const { manager, ghCalls } = yield* makeManager({
3761 ghScenario: {
3762 prListSequence: [
3801 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3763 JSON.stringify([
3764 {
3765 number: 142,
@@ -3875,7 +3836,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3836 const { manager, ghCalls } = yield* makeManager({
3837 ghScenario: {
3838 prListByHeadSelector: {
3878 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3839 "effect-atom": JSON.stringify([
3840 {
3841 number: 1618,
@@ -3885,7 +3845,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3845 headRefName: "effect-atom",
3846 },
3847 ]),
3888 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3848 "upstream/effect-atom": JSON.stringify([
3849 {
3850 number: 1518,
@@ -3935,9 +3894,7 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3894 const { manager, ghCalls } = yield* makeManager({
3895 ghScenario: {
3896 prListByHeadSelector: {
3938 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3897 "t3code/pr-142/statemachine": JSON.stringify([]),
3940 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3898 statemachine: JSON.stringify([
3899 {
3900 number: 41,
@@ -4003,7 +3960,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3960 const { manager, ghCalls } = yield* makeManager({
3961 ghScenario: {
3962 prListByHeadSelector: {
4006 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3963 statemachine: JSON.stringify([
3964 {
3965 number: 142,
@@ -4021,7 +3977,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
3977 },
3978 },
3979 ]),
4024 - // @effect-diagnostics-next-line preferSchemaOverJson:off
3980 "t3code/pr-142/statemachine": JSON.stringify([]),
3981 },
3982 },
@@ -4264,7 +4219,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
4219 ghScenario: {
4220 prListSequence: [
4221 "[]",
4267 - // @effect-diagnostics-next-line preferSchemaOverJson:off
4222 JSON.stringify([
4223 {
4224 number: 88,
@@ -4385,7 +4339,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
4339 const { manager, ghCalls } = yield* makeManager({
4340 ghScenario: {
4341 prListSequence: [
4388 - // @effect-diagnostics-next-line preferSchemaOverJson:off
4342 JSON.stringify([
4343 {
4344 number: 1661,
@@ -4403,7 +4356,6 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
4356 },
4357 },
4358 ]),
4406 - // @effect-diagnostics-next-line preferSchemaOverJson:off
4359 JSON.stringify([
4360 {
4361 number: 188,
@@ -4466,9 +4418,7 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
4418 ghScenario: {
4419 prListSequenceByHeadSelector: {
4420 statemachine: [
4469 - // @effect-diagnostics-next-line preferSchemaOverJson:off
4421 JSON.stringify([]),
4471 - // @effect-diagnostics-next-line preferSchemaOverJson:off
4422 JSON.stringify([
4423 {
4424 number: 188,
@@ -6084,9 +6034,7 @@ it.layer(layerGitManagerTest)("GitManager", (it) => {
6034 const { manager } = yield* makeManager({
6035 ghScenario: {
6036 prListSequence: [
6087 - // @effect-diagnostics-next-line preferSchemaOverJson:off
6037 JSON.stringify([]),
6089 - // @effect-diagnostics-next-line preferSchemaOverJson:off
6038 JSON.stringify([
6039 {
6040 number: 201,
apps/server/src/keybindings.test.ts
-1
@@ -219,7 +219,6 @@ it.layer(NodeServices.layer)("keybindings", (it) => {
219 const { keybindingsConfigPath } = yield* ServerConfig.ServerConfig;
220 yield* fs.writeFileString(
221 keybindingsConfigPath,
222 - // @effect-diagnostics-next-line preferSchemaOverJson:off
222 JSON.stringify([
223 { key: "mod+j", command: "terminal.toggle" },
224 { key: "mod+shift+d+o", command: "terminal.new" },
apps/server/src/mcp/AcpMcpOverAcpBridge.test.ts
-1
@@ -1,5 +1,4 @@
1 // The bridge intentionally treats MCP JSON-RPC messages as opaque JSON.
2 -// @effect-diagnostics preferSchemaOverJson:off
2 import { describe, expect, it } from "@effect/vitest";
3 import * as Effect from "effect/Effect";
4 import * as Fiber from "effect/Fiber";
apps/server/src/mcp/AcpMcpStdioBridge.test.ts
+1 -1
@@ -1,6 +1,6 @@
1 // The harness asserts raw JSON-RPC wire strings, mirroring the bridge's
2 // schema-free passthrough.
3 -// @effect-diagnostics nodeBuiltinImport:off globalTimers:off preferSchemaOverJson:off
3 +// @effect-diagnostics nodeBuiltinImport:off globalTimers:off
4 import * as NodeStream from "node:stream";
5
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 FROM projection_projects
45 WHERE project_id = ${projectId}
46 `;
47 - // @effect-diagnostics-next-line preferSchemaOverJson:off
47 assert.strictEqual(rows[0]?.defaultModelSelection, JSON.stringify(modelSelection));
48 assert.deepStrictEqual(
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 FROM orchestration_events
266 ORDER BY rowid ASC
267 `;
268 - // @effect-diagnostics-next-line preferSchemaOverJson:off
268 assert.deepStrictEqual(JSON.parse(eventRows[0]!.payloadJson), {
269 projectId: "project-1",
270 title: "Project",
@@ -281,7 +280,6 @@ layer("016_CanonicalizeModelSelections", (it) => {
280 createdAt: "2026-01-01T00:00:00.000Z",
281 updatedAt: "2026-01-01T00:00:00.000Z",
282 });
284 - // @effect-diagnostics-next-line preferSchemaOverJson:off
283 assert.deepStrictEqual(JSON.parse(eventRows[1]!.payloadJson), {
284 projectId: "project-2",
285 title: "Fallback Project",
@@ -297,7 +295,6 @@ layer("016_CanonicalizeModelSelections", (it) => {
295 createdAt: "2026-01-01T00:00:00.000Z",
296 updatedAt: "2026-01-01T00:00:00.000Z",
297 });
300 - // @effect-diagnostics-next-line preferSchemaOverJson:off
298 assert.deepStrictEqual(JSON.parse(eventRows[2]!.payloadJson), {
299 projectId: "project-3",
300 title: "Null Model Project",
@@ -307,7 +304,6 @@ layer("016_CanonicalizeModelSelections", (it) => {
304 createdAt: "2026-01-01T00:00:00.000Z",
305 updatedAt: "2026-01-01T00:00:00.000Z",
306 });
310 - // @effect-diagnostics-next-line preferSchemaOverJson:off
307 assert.deepStrictEqual(JSON.parse(eventRows[3]!.payloadJson), {
308 threadId: "thread-1",
309 projectId: "project-1",
@@ -327,7 +323,6 @@ layer("016_CanonicalizeModelSelections", (it) => {
323 createdAt: "2026-01-01T00:00:00.000Z",
324 updatedAt: "2026-01-01T00:00:00.000Z",
325 });
330 - // @effect-diagnostics-next-line preferSchemaOverJson:off
326 assert.deepStrictEqual(JSON.parse(eventRows[4]!.payloadJson), {
327 threadId: "thread-2",
328 projectId: "project-1",
@@ -346,7 +341,6 @@ layer("016_CanonicalizeModelSelections", (it) => {
341 createdAt: "2026-01-01T00:00:00.000Z",
342 updatedAt: "2026-01-01T00:00:00.000Z",
343 });
349 - // @effect-diagnostics-next-line preferSchemaOverJson:off
344 assert.deepStrictEqual(JSON.parse(eventRows[5]!.payloadJson), {
345 threadId: "thread-1",
346 turnId: "turn-1",
@@ -360,7 +354,6 @@ layer("016_CanonicalizeModelSelections", (it) => {
354 },
355 deliveryMode: "buffered",
356 });
363 - // @effect-diagnostics-next-line preferSchemaOverJson:off
357 assert.deepStrictEqual(JSON.parse(eventRows[6]!.payloadJson), {
358 threadId: "thread-3",
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 },
294 });
295
296 - // @effect-diagnostics-next-line preferSchemaOverJson:off
296 const invocation = JSON.parse(yield* fs.readFileString(invocationPath)) as {
297 readonly args: ReadonlyArray<string>;
298 readonly cwd: string;
@@ -310,7 +309,6 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => {
309
310 const settingsFlagIndex = invocation.args.indexOf("--settings");
311 assert.notEqual(settingsFlagIndex, -1);
313 - // @effect-diagnostics-next-line preferSchemaOverJson:off
312 const flagSettings = JSON.parse(invocation.args[settingsFlagIndex + 1] ?? "{}") as {
313 readonly disableAllHooks?: boolean;
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 import * as NodeHttp from "node:http";
3 import * as NodeCrypto from "node:crypto";
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.
1 import { assert, it } from "@effect/vitest";
2 import * as Effect from "effect/Effect";
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 directory: dir,
381 name: "grok",
382 source: [
383 - // @effect-diagnostics-next-line preferSchemaOverJson:off
383 `process.stderr.write(${JSON.stringify(`${secretStderr}\n`)});`,
384 "process.exit(2);",
385 "",
@@ -417,7 +416,6 @@ it.layer(NodeServices.layer)("checkGrokProviderStatus", (it) => {
416 " process.exit(0);",
417 "}",
418 'if (process.argv[2] === "models") {',
420 - // @effect-diagnostics-next-line preferSchemaOverJson:off
419 ` process.stdout.write(${JSON.stringify(input.modelsOutput)});`,
420 " process.exit(0);",
421 "}",
apps/server/src/provider/ProviderInstanceRegistry.test.ts
-2
@@ -172,7 +172,6 @@ const makeTildeProviderFixtures = Effect.fn(
172 );
173 yield* fileSystem.writeFileString(
174 codexScriptPath,
175 - // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed script document read by the external Codex mock peer.
175 JSON.stringify({ rootThreadId: "probe-thread", notifications: [] }),
176 );
177 yield* fileSystem.chmod(codexPath, 0o755);
@@ -346,7 +345,6 @@ describe("ProviderInstanceRegistry — multi-instance codex slice", () => {
345 const fixtures = yield* makeTildeProviderFixtures();
346 yield* fileSystem.writeFileString(
347 fixtures.codexScriptPath,
349 - // @effect-diagnostics-next-line preferSchemaOverJson:off - fixed script document read by the external Codex mock peer.
348 JSON.stringify({
349 rootThreadId: "probe-thread",
350 notifications: [],
apps/server/src/pullRequest/AzureDevOpsPullRequestCli.test.ts
-9
@@ -228,7 +228,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
228 ...row,
229 description: "x".repeat(10_000),
230 }));
231 - // @effect-diagnostics-next-line preferSchemaOverJson:off
231 const response = JSON.stringify(rows);
232 expect(Buffer.byteLength(response)).toBeGreaterThan(1_000_000);
233
@@ -341,7 +340,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
340 .mockReturnValueOnce(
341 Effect.succeed(
342 output(
344 - // @effect-diagnostics-next-line preferSchemaOverJson:off
343 JSON.stringify([
344 { pullRequestId: "malformed" },
345 pullRequestRows(1, 1)[0],
@@ -434,7 +432,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
432 Effect.gen(function* () {
433 // `--query user` unwraps the object, so the wrapper has to put it back.
434 mockedExecute.mockReturnValueOnce(
437 - // @effect-diagnostics-next-line preferSchemaOverJson:off
435 Effect.succeed(output(JSON.stringify({ name: "bilal@acme.dev", type: "user" }))),
436 );
437 const cli = yield* AzureDevOpsPullRequestCli.AzureDevOpsPullRequestCli;
@@ -636,7 +633,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
633 .mockReturnValueOnce(
634 Effect.succeed(
635 output(
639 - // @effect-diagnostics-next-line preferSchemaOverJson:off
636 JSON.stringify({
637 pullRequestId: 42,
638 title: "Add the page",
@@ -653,7 +649,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
649 .mockReturnValueOnce(
650 Effect.succeed(
651 output(
656 - // @effect-diagnostics-next-line preferSchemaOverJson:off
652 JSON.stringify({
653 value: [
654 {
@@ -674,7 +669,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
669 .mockReturnValueOnce(
670 Effect.succeed(
671 output(
677 - // @effect-diagnostics-next-line preferSchemaOverJson:off
672 JSON.stringify({
673 changeEntries: [
674 { changeType: "edit", item: { path: "/README.md", objectId: "8f80" } },
@@ -713,7 +707,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
707 // pull request read every time they checked whether a file had been pushed to.
708 const pullRequest = Effect.succeed(
709 output(
716 - // @effect-diagnostics-next-line preferSchemaOverJson:off
710 JSON.stringify({
711 pullRequestId: 42,
712 title: "Add the page",
@@ -1219,7 +1212,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
1212 mockedExecute.mockReturnValueOnce(
1213 Effect.succeed(
1214 output(
1222 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1215 JSON.stringify({
1216 value: [
1217 {
@@ -1374,7 +1366,6 @@ layer("AzureDevOpsPullRequestCli.layer", (it) => {
1366 Effect.succeed(
1367 output(
1368 // Well-formed, but with nothing to build a link from: not a decode failure.
1377 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1369 JSON.stringify({
1370 pullRequestId: 42,
1371 title: "Add the page",
apps/server/src/pullRequest/BitbucketPullRequestApi.test.ts
-16
@@ -676,7 +676,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
676 expect(call.method).toBe("PUT");
677 expect(call.url).toBe("/repositories/acme/web/pullrequests/7");
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
679 expect(JSON.parse(call.body ?? "")).toEqual({ title: "A new title" });
680 }),
681 );
@@ -688,7 +687,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
687
688 yield* api.updateChangeRequest({ repository: "acme/web", number: 7, body: "New body." });
689
691 - // @effect-diagnostics-next-line preferSchemaOverJson:off
690 expect(JSON.parse(callAt(0).body ?? "")).toEqual({ description: "New body." });
691 }),
692 );
@@ -705,7 +703,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
703 body: "New body.",
704 });
705
708 - // @effect-diagnostics-next-line preferSchemaOverJson:off
706 expect(JSON.parse(callAt(0).body ?? "")).toEqual({
707 title: "A new title",
708 description: "New body.",
@@ -736,7 +733,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
733 it.effect("fails the read when Bitbucket answers with something unreadable", () =>
734 Effect.gen(function* () {
735 mockedRequest.mockReturnValueOnce(
739 - // @effect-diagnostics-next-line preferSchemaOverJson:off
736 Effect.succeed(response(JSON.stringify({ error: "nope" }))),
737 );
738 const api = yield* BitbucketPullRequestApi.BitbucketPullRequestApi;
@@ -769,7 +765,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
765
766 it.effect("fails when the credentials belong to no named account", () =>
767 Effect.gen(function* () {
772 - // @effect-diagnostics-next-line preferSchemaOverJson:off
768 mockedRequest.mockReturnValueOnce(Effect.succeed(response(JSON.stringify({}))));
769 const api = yield* BitbucketPullRequestApi.BitbucketPullRequestApi;
770
@@ -784,7 +779,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
779 mockedRequest.mockReturnValueOnce(
780 Effect.succeed(
781 response(
787 - // @effect-diagnostics-next-line preferSchemaOverJson:off
782 JSON.stringify({
783 next: "https://api.bitbucket.org/2.0/comments?page=2",
784 values: [
@@ -805,7 +799,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
799 response(
800 // The reply arrives a page after the remark it answers, which is why the threads
801 // are only assembled once every page is in hand.
808 - // @effect-diagnostics-next-line preferSchemaOverJson:off
802 JSON.stringify({
803 values: [
804 {
@@ -840,7 +833,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
833 mockedRequest.mockReturnValue(
834 Effect.succeed(
835 response(
843 - // @effect-diagnostics-next-line preferSchemaOverJson:off
836 JSON.stringify({
837 next: "https://api.bitbucket.org/2.0/comments?page=2",
838 values: [
@@ -868,7 +860,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
860 mockedRequest.mockReturnValueOnce(
861 Effect.succeed(
862 response(
871 - // @effect-diagnostics-next-line preferSchemaOverJson:off
863 JSON.stringify({
864 values: [
865 {
@@ -941,7 +932,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
932 });
933
934 expect(callAt(0).url).toContain("/pullrequests/7/comments");
944 - // @effect-diagnostics-next-line preferSchemaOverJson:off
935 expect(JSON.parse(callAt(0).body ?? "")).toEqual({
936 content: { raw: "why remove?" },
937 inline: { path: "src/a.ts", from: 12 },
@@ -988,7 +978,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
978 body: "Fixed.",
979 });
980
991 - // @effect-diagnostics-next-line preferSchemaOverJson:off
981 expect(JSON.parse(callAt(0).body ?? "")).toEqual({
982 content: { raw: "Fixed." },
983 parent: { id: 10 },
@@ -1001,7 +990,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
990 mockedRequest.mockReturnValue(
991 Effect.succeed(
992 response(
1004 - // @effect-diagnostics-next-line preferSchemaOverJson:off
993 JSON.stringify({ values: [{ type: "repository_permission", permission: "read" }] }),
994 ),
995 ),
@@ -1017,7 +1005,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
1005
1006 it.effect("escapes a repository name before it goes inside a filter literal", () =>
1007 Effect.gen(function* () {
1020 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1008 mockedRequest.mockReturnValue(Effect.succeed(response(JSON.stringify({ values: [] }))));
1009 const api = yield* BitbucketPullRequestApi.BitbucketPullRequestApi;
1010
@@ -1075,7 +1062,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
1062 .mockReturnValueOnce(
1063 Effect.succeed(
1064 response(
1078 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1065 JSON.stringify({ values: [{ user: bilal }, { user: octocat }, { user: hubot }] }),
1066 ),
1067 ),
@@ -1113,7 +1099,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
1099 const call = callAt(1);
1100 expect(call.method).toBe("PUT");
1101 expect(call.url).toBe("/repositories/acme/web/pullrequests/7");
1116 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1102 expect(JSON.parse(call.body ?? "")).toEqual({
1103 reviewers: [{ uuid: "{octocat}" }, { uuid: "{hubot}" }],
1104 });
@@ -1136,7 +1121,6 @@ layer("BitbucketPullRequestApi.layer", (it) => {
1121 requested: false,
1122 });
1123
1139 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1124 expect(JSON.parse(callAt(1).body ?? "")).toEqual({ reviewers: [{ uuid: "{octocat}" }] });
1125 }),
1126 );
apps/server/src/pullRequest/GitHubPullRequestCli.test.ts
-1
@@ -789,7 +789,6 @@ layer("GitHubPullRequestCli.layer", (it) => {
789 mockedExecute.mockReturnValueOnce(
790 Effect.succeed(
791 output(
792 - // @effect-diagnostics-next-line preferSchemaOverJson:off
792 JSON.stringify({
793 data: { w0: { pullRequest: node(1) }, w1: { pullRequest: null } },
794 }),
apps/server/src/pullRequest/GitLabPullRequestCli.test.ts
+2 -38
@@ -226,10 +226,8 @@ layer("GitLabPullRequestCli.layer", (it) => {
226
227 it.effect("advances the cursor through malformed raw rows", () =>
228 Effect.gen(function* () {
229 - // @effect-diagnostics-next-line preferSchemaOverJson:off
229 const rows = JSON.parse(mergeRequests(2, 1)) as ReadonlyArray<unknown>;
230 mockedExecute.mockReturnValueOnce(
232 - // @effect-diagnostics-next-line preferSchemaOverJson:off
231 Effect.succeed(output(JSON.stringify([{ iid: "malformed" }, ...rows]))),
232 );
233 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
@@ -314,7 +312,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
312 Effect.gen(function* () {
313 // Full pages of unusable rows: nothing is collected, so the collected-count bound never
314 // trips and only the page bound can end the walk.
317 - // @effect-diagnostics-next-line preferSchemaOverJson:off
315 const unusable = JSON.stringify(Array.from({ length: 100 }, () => ({ iid: "nope" })));
316 mockedExecute.mockReturnValue(Effect.succeed(output(unusable)));
317 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
@@ -627,7 +624,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
624 it.effect("reports a commit with no parent as a structured error", () =>
625 Effect.gen(function* () {
626 mockedExecute.mockReturnValueOnce(
630 - // @effect-diagnostics-next-line preferSchemaOverJson:off
627 Effect.succeed(output(JSON.stringify({ id: "a1b2c3d", parent_ids: [] }))),
628 );
629 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
@@ -654,7 +650,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
650 it.effect("expands a new file from a root commit without requiring a parent", () =>
651 Effect.gen(function* () {
652 mockedExecute.mockReturnValueOnce(
657 - // @effect-diagnostics-next-line preferSchemaOverJson:off
653 Effect.succeed(output(JSON.stringify({ id: "a1b2c3d", parent_ids: [] }))),
654 );
655 mockedExecute.mockReturnValueOnce(Effect.succeed(output("first contents\n")));
@@ -680,7 +675,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
675 mockedExecute.mockReturnValueOnce(
676 Effect.succeed(
677 output(
683 - // @effect-diagnostics-next-line preferSchemaOverJson:off
678 JSON.stringify({
679 diff_refs: {
680 base_sha: "a1b2c3d",
@@ -718,7 +712,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
712 mockedExecute.mockReturnValueOnce(
713 Effect.succeed(
714 output(
721 - // @effect-diagnostics-next-line preferSchemaOverJson:off
715 JSON.stringify({
716 diff_refs: {
717 base_sha: "a1b2c3d",
@@ -758,7 +751,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
751 mockedExecute.mockReturnValueOnce(
752 Effect.succeed(
753 output(
761 - // @effect-diagnostics-next-line preferSchemaOverJson:off
754 JSON.stringify({
755 diff_refs: {
756 base_sha: "a1b2c3d",
@@ -823,7 +815,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
815 it.effect("offers no squash when the project does not say it allows one", () =>
816 Effect.gen(function* () {
817 mockedExecute.mockReturnValueOnce(
826 - // @effect-diagnostics-next-line preferSchemaOverJson:off
818 Effect.succeed(output(JSON.stringify({ merge_method: "merge" }))),
819 );
820 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
@@ -840,7 +831,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
831 it.effect("reads the project's merge settings as its merge capabilities", () =>
832 Effect.gen(function* () {
833 mockedExecute.mockReturnValueOnce(
843 - // @effect-diagnostics-next-line preferSchemaOverJson:off
834 Effect.succeed(output(JSON.stringify({ merge_method: "ff", squash_option: "never" }))),
835 );
836 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
@@ -884,7 +874,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
874
875 it.effect("fails when the authenticated account has no username", () =>
876 Effect.gen(function* () {
887 - // @effect-diagnostics-next-line preferSchemaOverJson:off
877 mockedExecute.mockReturnValueOnce(Effect.succeed(output(JSON.stringify({ username: "" }))));
878 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
879
@@ -935,7 +924,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
924 mockedExecute.mockReturnValueOnce(
925 Effect.succeed(
926 output(
938 - // @effect-diagnostics-next-line preferSchemaOverJson:off
927 JSON.stringify([
928 {
929 id: "abc123",
@@ -994,7 +982,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
982 mockedExecute.mockReturnValueOnce(
983 Effect.succeed(
984 output(
997 - // @effect-diagnostics-next-line preferSchemaOverJson:off
985 JSON.stringify({
986 iid: 7,
987 title: "t",
@@ -1030,7 +1017,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1017 // The diff revisions first, because a positioned comment cannot be placed without them.
1018 expect(argsOfCall(0)[1]).toContain("merge_requests/7");
1019 expect(argsOfCall(1)[1]).toContain("/discussions");
1033 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1020 expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({
1021 body: "why remove?",
1022 position: {
@@ -1086,7 +1072,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1072 expect(argsOfCall(0)).toContain("--method");
1073 expect(argsOfCall(0)).toContain("PUT");
1074 expect(argsOfCall(0)[1]).toContain("/discussions/abc123");
1089 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1075 expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({ resolved: true });
1076 }),
1077 );
@@ -1117,13 +1102,11 @@ layer("GitLabPullRequestCli.layer", (it) => {
1102 it.effect("removes an award by listing them and deleting the reader's own id", () =>
1103 Effect.gen(function* () {
1104 mockedExecute.mockReturnValueOnce(
1120 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1105 Effect.succeed(output(JSON.stringify({ username: "bilal" }))),
1106 );
1107 mockedExecute.mockReturnValueOnce(
1108 Effect.succeed(
1109 output(
1126 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1110 JSON.stringify([
1111 { id: 5, name: "thumbsup", user: { username: "bilal" } },
1112 { id: 6, name: "thumbsup", user: { username: "julius" } },
@@ -1155,7 +1138,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1138 it.effect("does nothing when the reader has no award of that name to take back", () =>
1139 Effect.gen(function* () {
1140 mockedExecute.mockReturnValueOnce(
1158 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1141 Effect.succeed(output(JSON.stringify({ username: "bilal" }))),
1142 );
1143 mockedExecute.mockReturnValueOnce(Effect.succeed(output("[]")));
@@ -1179,7 +1161,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1161 mockedExecute.mockReturnValueOnce(
1162 Effect.succeed(
1163 output(
1182 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1164 JSON.stringify({
1165 iid: 7,
1166 title: "t",
@@ -1217,10 +1198,7 @@ layer("GitLabPullRequestCli.layer", (it) => {
1198 mockedExecute
1199 .mockReturnValueOnce(Effect.succeed(output(mergeRequestJson({ reviewers: [reviewer] }))))
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" }]))),
1202 );
1203 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
1204
@@ -1258,7 +1236,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1236 // GitLab replaces the whole set, so the reviewer already on the merge request has to be
1237 // sent back with the new one or the request would take them off it.
1238 expect(argsOfCall(1)).toContain("PUT");
1261 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1239 expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({ reviewer_ids: [5, 9] });
1240 }),
1241 );
@@ -1282,7 +1259,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1259 requested: false,
1260 });
1261
1285 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1262 expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({ reviewer_ids: [5] });
1263 }),
1264 );
@@ -1303,7 +1279,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1279 });
1280
1281 // Sending it as a number would rewrite the reviewer set around something nobody chose.
1306 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1282 expect(JSON.parse(callAt(1).stdin ?? "")).toEqual({ reviewer_ids: [5] });
1283 }),
1284 );
@@ -1330,7 +1305,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1305 "--header",
1306 "Content-Type: application/json",
1307 ]);
1333 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1308 expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({ title: "A better title" });
1309 }),
1310 );
@@ -1348,7 +1322,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1322 });
1323
1324 // A title sent as an empty string would wipe the one the merge request already has.
1351 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1325 expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({ description: "What this changes." });
1326 }),
1327 );
@@ -1367,7 +1340,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1340 });
1341
1342 assert.strictEqual(mockedExecute.mock.calls.length, 1);
1370 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1343 expect(JSON.parse(callAt(0).stdin ?? "")).toEqual({
1344 title: "A better title",
1345 description: "What this changes.",
@@ -1407,7 +1379,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1379 mockedExecute.mockReturnValueOnce(
1380 Effect.succeed(
1381 output(
1410 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1382 JSON.stringify({
1383 iid: 7,
1384 title: "t",
@@ -1424,7 +1395,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1395 mockedExecute.mockReturnValueOnce(
1396 Effect.succeed(
1397 output(
1427 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1398 JSON.stringify({
1399 data: {
1400 project: { repository: { blobs: { nodes: [{ path: "src/a.ts", oid: "aaa" }] } } },
@@ -1449,7 +1419,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1419 ["src/gone.ts", ""],
1420 ]);
1421 // The head the reader is looking at, not whatever the source branch has moved on to.
1452 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1422 const body: unknown = JSON.parse(callAt(1).stdin ?? "{}");
1423 expect(body).toMatchObject({
1424 variables: { fullPath: "acme/web", ref: "head", paths: ["src/a.ts", "src/gone.ts"] },
@@ -1462,7 +1431,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1431 mockedExecute.mockReturnValueOnce(
1432 Effect.succeed(
1433 output(
1465 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1434 JSON.stringify({
1435 iid: 7,
1436 title: "t",
@@ -1480,10 +1448,7 @@ layer("GitLabPullRequestCli.layer", (it) => {
1448 // these files, and reading it that way would report every file the reader has cleared as
1449 // changed on nothing worse than a permission.
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 } }))),
1452 );
1453 const cli = yield* GitLabPullRequestCli.GitLabPullRequestCli;
1454
@@ -1520,7 +1485,6 @@ layer("GitLabPullRequestCli.layer", (it) => {
1485 mockedExecute.mockReturnValueOnce(
1486 Effect.succeed(
1487 output(
1523 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1488 JSON.stringify({
1489 iid: 7,
1490 title: "t",
apps/server/src/serverSettings.test.ts
+1 -11
@@ -578,7 +578,6 @@ it.layer(NodeServices.layer)("server settings", (it) => {
578 const change = Option.getOrUndefined(yield* Stream.runHead(changes));
579 const raw = yield* fileSystem.readFileString(serverConfig.settingsPath);
580 // Inspect raw persisted JSON before schema decoding can apply defaults.
581 - // @effect-diagnostics-next-line preferSchemaOverJson:off
581 const persisted = JSON.parse(raw) as Record<string, unknown>;
582
583 assert.strictEqual(next.sidebarAutoSettleAfterDays, null);
@@ -759,7 +758,6 @@ it.layer(NodeServices.layer)("server settings", (it) => {
758
759 const raw = yield* fileSystem.readFileString(serverConfig.settingsPath);
760 assert.deepEqual(
762 - // @effect-diagnostics-next-line preferSchemaOverJson:off
761 JSON.parse(raw).sourceControlWriterModelSelection,
762 sourceControlWriterModelSelection,
763 );
@@ -1046,7 +1044,6 @@ it.layer(NodeServices.layer)("server settings", (it) => {
1044 assert.isFalse(settings.providers.grok.enabled);
1045
1046 const raw = yield* fileSystem.readFileString(serverConfig.settingsPath);
1049 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1047 assert.isFalse(JSON.parse(raw).providers.grok.enabled);
1048 }).pipe(Effect.provide(layerServerSettings())),
1049 );
@@ -1067,7 +1064,6 @@ it.layer(NodeServices.layer)("server settings", (it) => {
1064 yield* serverSettings.updateSettings({ addProjectBaseDirectory: "~/Development" });
1065
1066 const raw = yield* fileSystem.readFileString(serverConfig.settingsPath);
1070 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1067 const persisted = JSON.parse(raw);
1068 assert.isTrue(persisted.providers.cursor.enabled);
1069 assert.isTrue(persisted.providers.grok.enabled);
@@ -1104,7 +1100,6 @@ it.layer(NodeServices.layer)("server settings", (it) => {
1100 assert.isFalse(resolveProviderInstanceEnabled(grok));
1101
1102 const raw = yield* fileSystem.readFileString(serverConfig.settingsPath);
1107 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1103 const persisted = JSON.parse(raw);
1104 assert.isFalse(persisted.providers.cursor.enabled);
1105 assert.isFalse(persisted.providers.grok.enabled);
@@ -1288,7 +1283,6 @@ it.layer(NodeServices.layer)("server settings", (it) => {
1283 assert.equal(next.providers.codex.binaryPath, "/opt/homebrew/bin/codex");
1284
1285 const raw = yield* fileSystem.readFileString(serverConfig.settingsPath);
1291 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1286 assert.deepEqual(JSON.parse(raw), {
1287 addProjectBaseDirectory: "~/Development",
1288 observability: {
@@ -1506,7 +1500,6 @@ it.layer(NodeServices.layer)("server settings", (it) => {
1500
1501 const raw = yield* fileSystem.readFileString(serverConfig.settingsPath);
1502 assert.notInclude(raw, "sk-or-secret");
1509 - // @effect-diagnostics-next-line preferSchemaOverJson:off
1503 assert.deepEqual(JSON.parse(raw).providerInstances.codex_personal.environment, [
1504 {
1505 name: "OPENROUTER_API_KEY",
@@ -1992,10 +1985,7 @@ it.layer(NodeServices.layer)("server settings", (it) => {
1985 projectSettingsOverrides: { [legacyProject]: null },
1986 });
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));
1989 assert.isTrue(persisted.projectSettingsFolded);
1990 assert.isUndefined(persisted.projectSettingsOverrides[legacyProject]);
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 const databasePath = path.join(root, "userdata", "state.sqlite");
199 yield* fs.makeDirectory(path.dirname(databasePath), { recursive: true });
200 yield* fs.writeFileString(databasePath, "before trial");
201 - // @effect-diagnostics-next-line preferSchemaOverJson:off - embeds a path in fake child source.
201 const encodedDatabasePath = JSON.stringify(databasePath);
202 const childSource = `
203 const context = JSON.parse(process.env.T3_SERVICE_LAUNCHER_CONTEXT);
@@ -252,7 +251,6 @@ if (context.update?.status === "pending") {
251 const databasePath = path.join(root, "userdata", "state.sqlite");
252 yield* fs.makeDirectory(path.dirname(databasePath), { recursive: true });
253 yield* fs.writeFileString(databasePath, "before trial");
255 - // @effect-diagnostics-next-line preferSchemaOverJson:off - embeds a path in fake child source.
254 const encodedDatabasePath = JSON.stringify(databasePath);
255 const childSource = `
256 const context = JSON.parse(process.env.T3_SERVICE_LAUNCHER_CONTEXT);
@@ -308,7 +306,6 @@ if (context.update?.status === "pending") {
306 const original = "database before migration";
307 yield* fs.makeDirectory(path.dirname(databasePath), { recursive: true });
308 yield* fs.writeFileString(databasePath, original);
311 - // @effect-diagnostics-next-line preferSchemaOverJson:off - embeds a path in fake child source.
309 const encodedDatabasePath = JSON.stringify(databasePath);
310 const childSource = `
311 import { writeFileSync } from "node:fs";
apps/server/src/sourceControl/AzureDevOpsCli.test.ts
-5
@@ -39,7 +39,6 @@ describe("AzureDevOpsCli.layer", () => {
39 mockRun.mockReturnValueOnce(
40 Effect.succeed(
41 processOutput(
42 - // @effect-diagnostics-next-line preferSchemaOverJson:off
42 JSON.stringify({
43 pullRequestId: 42,
44 title: "Add Azure provider",
@@ -97,7 +96,6 @@ describe("AzureDevOpsCli.layer", () => {
96 mockRun.mockReturnValueOnce(
97 Effect.succeed(
98 processOutput(
100 - // @effect-diagnostics-next-line preferSchemaOverJson:off
99 JSON.stringify({
100 pullRequestId: 863,
101 title: "Fix Azure link",
@@ -134,7 +132,6 @@ describe("AzureDevOpsCli.layer", () => {
132 mockRun.mockReturnValueOnce(
133 Effect.succeed(
134 processOutput(
137 - // @effect-diagnostics-next-line preferSchemaOverJson:off
135 JSON.stringify([
136 {
137 pullRequestId: 7,
@@ -195,7 +192,6 @@ describe("AzureDevOpsCli.layer", () => {
192 mockRun.mockReturnValueOnce(
193 Effect.succeed(
194 processOutput(
198 - // @effect-diagnostics-next-line preferSchemaOverJson:off
195 JSON.stringify({
196 name: "repo",
197 webUrl: "https://dev.azure.com/acme/project/_git/repo",
@@ -228,7 +224,6 @@ describe("AzureDevOpsCli.layer", () => {
224 mockRun.mockReturnValueOnce(
225 Effect.succeed(
226 processOutput(
231 - // @effect-diagnostics-next-line preferSchemaOverJson:off
227 JSON.stringify({
228 name: "repo",
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 assert.ok(request);
542 const rawBody = (request.body as { readonly body?: Uint8Array }).body;
543 assert.ok(rawBody);
544 - // @effect-diagnostics-next-line preferSchemaOverJson:off
544 assert.deepStrictEqual(JSON.parse(new TextDecoder().decode(rawBody)), {
545 scm: "git",
546 is_private: true,
@@ -577,7 +576,6 @@ it.effect("creates pull requests using the official REST payload shape", () => {
576 assert.ok(request);
577 const rawBody = (request.body as { readonly body?: Uint8Array }).body;
578 assert.ok(rawBody);
580 - // @effect-diagnostics-next-line preferSchemaOverJson:off
579 assert.deepStrictEqual(JSON.parse(new TextDecoder().decode(rawBody)), {
580 title: "Provider PR",
581 description: "PR body",
apps/server/src/sourceControl/GitLabCli.test.ts
+1 -12
@@ -39,7 +39,6 @@ layer("GitLabCli.layer", (it) => {
39 mockedRun.mockReturnValueOnce(
40 Effect.succeed(
41 processOutput(
42 - // @effect-diagnostics-next-line preferSchemaOverJson:off
42 JSON.stringify({
43 iid: 42,
44 title: "Add MR thread creation",
@@ -94,7 +93,6 @@ layer("GitLabCli.layer", (it) => {
93 mockedRun.mockReturnValueOnce(
94 Effect.succeed(
95 processOutput(
97 - // @effect-diagnostics-next-line preferSchemaOverJson:off
96 JSON.stringify([
97 {
98 iid: 0,
@@ -163,7 +161,6 @@ layer("GitLabCli.layer", (it) => {
161 mockedRun.mockReturnValueOnce(
162 Effect.succeed(
163 processOutput(
166 - // @effect-diagnostics-next-line preferSchemaOverJson:off
164 JSON.stringify({
165 path_with_namespace: "octocat/t3code",
166 web_url: "https://gitlab.com/octocat/t3code",
@@ -230,18 +227,10 @@ layer("GitLabCli.layer", (it) => {
227 Effect.gen(function* () {
228 mockedRun
229
230 + .mockReturnValueOnce(Effect.succeed(processOutput(JSON.stringify({ id: 1234 }))))
231 .mockReturnValueOnce(
232 Effect.succeed(
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
234 JSON.stringify({
235 path_with_namespace: "octocat/t3code",
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 const claudeConfigDir = path.join(process.cwd(), ".claude-work-test");
368 return yield* withFakeClaudeEnv(
369 {
370 - // @effect-diagnostics-next-line preferSchemaOverJson:off
370 output: JSON.stringify({
371 structured_output: {
372 title: "Use Claude home",
apps/server/src/vcs/VcsProjectConfig.test.ts
-2
@@ -42,7 +42,6 @@ describe("VcsProjectConfig", () => {
42 yield* fileSystem.makeDirectory(nested, { recursive: true });
43 yield* fileSystem.writeFileString(
44 path.join(configDir, "vcs.json"),
45 - // @effect-diagnostics-next-line preferSchemaOverJson:off
45 JSON.stringify({ vcs: { kind: "jj" } }),
46 );
47
@@ -72,7 +71,6 @@ describe("VcsProjectConfig", () => {
71 yield* fileSystem.makeDirectory(configDir, { recursive: true });
72 yield* fileSystem.writeFileString(
73 path.join(configDir, "vcs.json"),
75 - // @effect-diagnostics-next-line preferSchemaOverJson:off
74 JSON.stringify({ vcs: { kind: "jj" } }),
75 );
76
apps/web/src/cloud/linkEnvironment.test.ts
-4
@@ -240,7 +240,6 @@ describe("web cloud link environment client", () => {
240 "http://127.0.0.1:3000/api/connect/preferences",
241 );
242 expect(fetchMock.mock.calls[0]?.[1]?.method).toBe("POST");
243 - // @effect-diagnostics-next-line preferSchemaOverJson:off
243 expect(JSON.parse(bodyText(fetchMock.mock.calls[0]?.[1]?.body))).toEqual({
244 publishAgentActivity: true,
245 });
@@ -290,7 +289,6 @@ describe("web cloud link environment client", () => {
289 expect(String(fetchMock.mock.calls[1]?.[0])).toBe(
290 "http://127.0.0.1:3000/api/connect/link-proof",
291 );
293 - // @effect-diagnostics-next-line preferSchemaOverJson:off
292 expect(JSON.parse(bodyText(fetchMock.mock.calls[1]?.[1]?.body))).toMatchObject({
293 challenge: "challenge",
294 endpoint: {
@@ -341,11 +339,9 @@ describe("web cloud link environment client", () => {
339 }),
340 );
341
344 - // @effect-diagnostics-next-line preferSchemaOverJson:off
342 expect(JSON.parse(bodyText(fetchMock.mock.calls[0]?.[1]?.body))).toMatchObject({
343 managedTunnelsEnabled: false,
344 });
348 - // @effect-diagnostics-next-line preferSchemaOverJson:off
345 expect(JSON.parse(bodyText(fetchMock.mock.calls[1]?.[1]?.body))).toMatchObject({
346 endpoint: { providerKind: "manual" },
347 });
packages/client-runtime/src/state/pullRequestDiffHttp.test.ts
-1
@@ -71,7 +71,6 @@ describe("fetchEnvironmentPullRequestDiff", () => {
71 : "";
72 // The assertion deliberately inspects the serialized wire body rather than decoding a
73 // domain value for use in application code.
74 - // @effect-diagnostics-next-line preferSchemaOverJson:off
74 expect(JSON.parse(body)).toEqual({
75 projectId: "project-1",
76 repository: "owner/repository",
tsconfig.base.json
+7 -1
@@ -51,7 +51,13 @@
51 "globalFetch": "error",
52 "globalFetchInEffect": "error",
53 "schemaNumber": "off"
54 - }
54 + },
55 + "overrides": [
56 + {
57 + "include": ["**/*.test.ts", "**/*.test.tsx"],
58 + "options": { "diagnosticSeverity": { "preferSchemaOverJson": "off" } }
59 + }
60 + ]
61 }
62 ]
63 }