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
@@ -39,7 +39,6 @@ describe("AzureDevOpsCli.layer", () => {
|
||||
mockRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({
|
||||
pullRequestId: 42,
|
||||
title: "Add Azure provider",
|
||||
@@ -97,7 +96,6 @@ describe("AzureDevOpsCli.layer", () => {
|
||||
mockRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({
|
||||
pullRequestId: 863,
|
||||
title: "Fix Azure link",
|
||||
@@ -134,7 +132,6 @@ describe("AzureDevOpsCli.layer", () => {
|
||||
mockRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify([
|
||||
{
|
||||
pullRequestId: 7,
|
||||
@@ -195,7 +192,6 @@ describe("AzureDevOpsCli.layer", () => {
|
||||
mockRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({
|
||||
name: "repo",
|
||||
webUrl: "https://dev.azure.com/acme/project/_git/repo",
|
||||
@@ -228,7 +224,6 @@ describe("AzureDevOpsCli.layer", () => {
|
||||
mockRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({
|
||||
name: "repo",
|
||||
webUrl: "https://dev.azure.com/acme/project/_git/repo",
|
||||
|
||||
@@ -541,7 +541,6 @@ it.effect("creates repositories through the Bitbucket REST API", () => {
|
||||
assert.ok(request);
|
||||
const rawBody = (request.body as { readonly body?: Uint8Array }).body;
|
||||
assert.ok(rawBody);
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
assert.deepStrictEqual(JSON.parse(new TextDecoder().decode(rawBody)), {
|
||||
scm: "git",
|
||||
is_private: true,
|
||||
@@ -577,7 +576,6 @@ it.effect("creates pull requests using the official REST payload shape", () => {
|
||||
assert.ok(request);
|
||||
const rawBody = (request.body as { readonly body?: Uint8Array }).body;
|
||||
assert.ok(rawBody);
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
assert.deepStrictEqual(JSON.parse(new TextDecoder().decode(rawBody)), {
|
||||
title: "Provider PR",
|
||||
description: "PR body",
|
||||
|
||||
@@ -39,7 +39,6 @@ layer("GitLabCli.layer", (it) => {
|
||||
mockedRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({
|
||||
iid: 42,
|
||||
title: "Add MR thread creation",
|
||||
@@ -94,7 +93,6 @@ layer("GitLabCli.layer", (it) => {
|
||||
mockedRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify([
|
||||
{
|
||||
iid: 0,
|
||||
@@ -163,7 +161,6 @@ layer("GitLabCli.layer", (it) => {
|
||||
mockedRun.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({
|
||||
path_with_namespace: "octocat/t3code",
|
||||
web_url: "https://gitlab.com/octocat/t3code",
|
||||
@@ -230,18 +227,10 @@ layer("GitLabCli.layer", (it) => {
|
||||
Effect.gen(function* () {
|
||||
mockedRun
|
||||
|
||||
.mockReturnValueOnce(Effect.succeed(processOutput(JSON.stringify({ id: 1234 }))))
|
||||
.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({ id: 1234 }),
|
||||
),
|
||||
),
|
||||
)
|
||||
.mockReturnValueOnce(
|
||||
Effect.succeed(
|
||||
processOutput(
|
||||
// @effect-diagnostics-next-line preferSchemaOverJson:off
|
||||
JSON.stringify({
|
||||
path_with_namespace: "octocat/t3code",
|
||||
web_url: "https://gitlab.com/octocat/t3code",
|
||||
|
||||
Reference in new issue
Block a user