chore(tsconfig): turn off the Schema-over-JSON diagnostic in test files (#16375)
Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
32 files changed
+14
-192
No files matched your search
@@ -650,7 +650,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
|
||||
yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
|
||||
yield* fs.writeFileString(
|
||||
derivedPaths.settingsPath,
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
`${JSON.stringify({
|
||||
observability: {
|
||||
otlpTracesUrl: "http://localhost:4318/v1/traces",
|
||||
@@ -722,7 +721,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
|
||||
yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
|
||||
yield* fs.writeFileString(
|
||||
derivedPaths.settingsPath,
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
`${JSON.stringify({
|
||||
observability: {
|
||||
otlpTracesUrl: "http://localhost:4318/v1/traces",
|
||||
@@ -774,7 +772,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
|
||||
yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
|
||||
yield* fs.writeFileString(
|
||||
derivedPaths.settingsPath,
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
`${JSON.stringify({
|
||||
observability: {
|
||||
otlpTracesUrl: "http://localhost:4318/v1/traces",
|
||||
@@ -1073,7 +1070,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
|
||||
yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
|
||||
yield* fs.writeFileString(
|
||||
derivedPaths.settingsPath,
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
`${JSON.stringify({ observability: { otlpLogsUrl: "http://settings:4318/v1/logs" } })}\n`,
|
||||
);
|
||||
|
||||
@@ -1145,7 +1141,6 @@ it.layer(NodeServices.layer)("cli config resolution", (it) => {
|
||||
yield* fs.makeDirectory(path.dirname(derivedPaths.settingsPath), { recursive: true });
|
||||
yield* fs.writeFileString(
|
||||
derivedPaths.settingsPath,
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
`${JSON.stringify({ observability: { otlpLogsUrl: "http://settings:4318/v1/logs" } })}\n`,
|
||||
);
|
||||
|
||||
|
||||
@@ -173,7 +173,6 @@ describe("t3 pair", () => {
|
||||
const listed = yield* captureStdout(
|
||||
runCli(["auth", "pairing", "list", "--base-dir", baseDir, "--json"]),
|
||||
);
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off - CLI JSON output is decoded as a presentation DTO.
|
||||
const credentials = JSON.parse(listed) as ReadonlyArray<{ readonly label?: string }>;
|
||||
assert.equal(credentials.length, 1);
|
||||
assert.equal(credentials[0]?.label, "t3 pair");
|
||||
|
||||
Reference in new issue
Block a user