Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions apps/mobile/src/features/cloud/linkEnvironment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ describe("mobile cloud link environment client", () => {
const bodies: Array<unknown> = [];
const fetchMock = vi.fn((url: string | URL, init?: RequestInit) => {
if (init?.body) {
// @effect-diagnostics-next-line preferSchemaOverJson:off
bodies.push(JSON.parse(requestBodyText(init.body)));
}
if (String(url).endsWith("/v1/client/environment-link-challenges")) {
Expand Down Expand Up @@ -348,7 +347,6 @@ describe("mobile cloud link environment client", () => {
const bodies: Array<Record<string, unknown>> = [];
const fetchMock = vi.fn((url: string | URL, init?: RequestInit) => {
if (init?.body) {
// @effect-diagnostics-next-line preferSchemaOverJson:off
bodies.push(JSON.parse(requestBodyText(init.body)) as Record<string, unknown>);
}
if (String(url).endsWith("/v1/client/environment-link-challenges")) {
Expand Down
5 changes: 0 additions & 5 deletions apps/server/src/cli/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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`,
);

Expand Down Expand Up @@ -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`,
);

Expand Down
1 change: 0 additions & 1 deletion apps/server/src/cli/pair.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 0 additions & 4 deletions apps/server/src/cloud/bootService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => {
current: true,
installedVersion: "1.2.3",
});
// @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
const pendingState = JSON.stringify({
protocol: SERVICE_LAUNCHER_PROTOCOL,
activeVersion: "1.2.3",
Expand Down Expand Up @@ -546,7 +545,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => {
Effect.gen(function* () {
const { service, fs, statePath } = yield* makeHarness();
yield* service.install();
// @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
const pendingState = JSON.stringify({
protocol: SERVICE_LAUNCHER_PROTOCOL,
activeVersion: "1.2.3",
Expand Down Expand Up @@ -647,7 +645,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => {
Effect.gen(function* () {
const { service, fs, statePath, commands } = yield* makeHarness();
yield* service.install();
// @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
const pendingState = JSON.stringify({
protocol: SERVICE_LAUNCHER_PROTOCOL - 1,
activeVersion: "1.2.3",
Expand Down Expand Up @@ -808,7 +805,6 @@ it.layer(NodeServices.layer)("boot service install", (it) => {
const { service, fs, statePath, commands } = yield* makeHarness("darwin");
yield* service.install();
const plistPath = (yield* service.status).unitPath;
// @effect-diagnostics-next-line preferSchemaOverJson:off - fixed launcher-owned test document.
const pendingState = JSON.stringify({
protocol: SERVICE_LAUNCHER_PROTOCOL - 1,
activeVersion: "1.2.3",
Expand Down
1 change: 0 additions & 1 deletion apps/server/src/cloud/selfUpdate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const makeHarness = Effect.fn("test.make_self_update_harness")(function* (
launcherProtocol: SERVICE_LAUNCHER_PROTOCOL,
};
return {
// @effect-diagnostics-next-line preferSchemaOverJson:off - fake child-process stdout.
stdout: JSON.stringify(result),
stderr: "",
code: ChildProcessSpawner.ExitCode(0),
Expand Down
1 change: 0 additions & 1 deletion apps/server/src/device/SshDeviceHost.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @effect-diagnostics preferSchemaOverJson:off - the external process fixture emits raw JSON over SSH stdout.
import { expect, it } from "@effect/vitest";
import * as NodeServices from "@effect/platform-node/NodeServices";
import * as Net from "@t3tools/shared/Net";
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/device/sshDeviceScript.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @effect-diagnostics nodeBuiltinImport:off globalFetchInEffect:off preferSchemaOverJson:off - verifies generated remote scripts using real shell and Node processes.
// @effect-diagnostics nodeBuiltinImport:off globalFetchInEffect:off - verifies generated remote scripts using real shell and Node processes.
import * as Effect from "effect/Effect";
import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import { describe, expect, it } from "@effect/vitest";
Expand Down
Loading
Loading