From 6db4f086c9cb67992dc140c0964e9a33b6b6235d Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 23 Oct 2024 20:13:21 +0000 Subject: [PATCH] test: private packages to vitest --- private/aws-client-api-test/package.json | 4 +- .../vitest.config.js} | 1 + private/aws-client-retry-test/package.json | 4 +- .../src/ClientRetryTest.spec.ts | 5 +- .../vitest.config.js} | 1 + private/aws-echo-service/package.json | 4 +- .../vitest.config.js} | 1 + .../middleware-apply-body-checksum.spec.ts | 3 +- .../src/middleware-content-length.spec.ts | 3 +- .../src/middleware-endpoint.spec.ts | 3 +- .../src/middleware-retry.spec.ts | 3 +- .../src/middleware-serde.spec.ts | 3 +- .../src/util-stream.spec.ts | 3 +- private/aws-middleware-test/vitest.config.js | 10 + private/aws-protocoltests-ec2/package.json | 4 +- .../test/functional/ec2query.spec.ts | 2 - .../aws-protocoltests-ec2/vitest.config.js | 10 + .../aws-protocoltests-json-10/package.json | 4 +- .../test/functional/awsjson1_0.spec.ts | 2 - .../vitest.config.js | 10 + .../package.json | 4 +- .../test/functional/awsjson1_1.spec.ts | 2 - .../vitest.config.js | 10 + private/aws-protocoltests-json/package.json | 4 +- .../test/functional/awsjson1_1.spec.ts | 2 - .../aws-protocoltests-json/vitest.config.js | 10 + private/aws-protocoltests-query/package.json | 4 +- .../test/functional/awsquery.spec.ts | 2 - .../aws-protocoltests-query/vitest.config.js | 10 + .../package.json | 4 +- .../test/functional/restjson1.spec.ts | 2 - .../vitest.config.js | 10 + .../package.json | 4 +- .../test/functional/restjson1.spec.ts | 2 - .../vitest.config.js | 10 + .../aws-protocoltests-restjson/package.json | 4 +- .../test/functional/restjson1.spec.ts | 2 - .../vitest.config.js | 10 + .../aws-protocoltests-restxml/package.json | 4 +- .../test/functional/restxml.spec.ts | 2 - .../vitest.config.js | 10 + .../package.json | 4 +- .../test/functional/rpcv2cbor.spec.ts | 2 - .../vitest.config.js | 10 + private/aws-restjson-server/jest.config.js | 5 + private/aws-restjson-server/package.json | 3 +- .../test/functional/restjson1.spec.ts | 1318 ++++++++--------- private/aws-restjson-server/vitest.config.js | 10 + .../jest.config.js | 5 + .../package.json | 3 +- .../test/functional/restjson1.spec.ts | 254 ++-- .../vitest.config.js | 10 + private/aws-util-test/package.json | 4 +- .../src/clients/Weather.integ.spec.ts | 3 +- .../requests/test-http-handler.integ.spec.ts | 2 +- private/aws-util-test/vitest.config.integ.js | 9 + private/aws-util-test/vitest.config.integ.ts | 2 +- private/weather/vite.config.js | 8 - scripts/validation/vitest-validation.js | 25 +- vitest.config.ts | 12 +- 60 files changed, 1008 insertions(+), 873 deletions(-) rename private/{aws-middleware-test/vitest.config.ts => aws-client-api-test/vitest.config.js} (91%) rename private/{aws-restjson-server/vitest.config.ts => aws-client-retry-test/vitest.config.js} (91%) rename private/{aws-restjson-validation-server/vitest.config.ts => aws-echo-service/vitest.config.js} (91%) create mode 100644 private/aws-middleware-test/vitest.config.js create mode 100644 private/aws-protocoltests-ec2/vitest.config.js create mode 100644 private/aws-protocoltests-json-10/vitest.config.js create mode 100644 private/aws-protocoltests-json-machinelearning/vitest.config.js create mode 100644 private/aws-protocoltests-json/vitest.config.js create mode 100644 private/aws-protocoltests-query/vitest.config.js create mode 100644 private/aws-protocoltests-restjson-apigateway/vitest.config.js create mode 100644 private/aws-protocoltests-restjson-glacier/vitest.config.js create mode 100644 private/aws-protocoltests-restjson/vitest.config.js create mode 100644 private/aws-protocoltests-restxml/vitest.config.js create mode 100644 private/aws-protocoltests-smithy-rpcv2-cbor/vitest.config.js create mode 100644 private/aws-restjson-server/jest.config.js create mode 100644 private/aws-restjson-server/vitest.config.js create mode 100644 private/aws-restjson-validation-server/jest.config.js create mode 100644 private/aws-restjson-validation-server/vitest.config.js create mode 100644 private/aws-util-test/vitest.config.integ.js delete mode 100644 private/weather/vite.config.js diff --git a/private/aws-client-api-test/package.json b/private/aws-client-api-test/package.json index 79cb8f1917fb7..1b99d2b051178 100644 --- a/private/aws-client-api-test/package.json +++ b/private/aws-client-api-test/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-middleware-test/vitest.config.ts b/private/aws-client-api-test/vitest.config.js similarity index 91% rename from private/aws-middleware-test/vitest.config.ts rename to private/aws-client-api-test/vitest.config.js index 4e46707824a58..ff6aa0c5d1dc4 100644 --- a/private/aws-middleware-test/vitest.config.ts +++ b/private/aws-client-api-test/vitest.config.js @@ -5,5 +5,6 @@ export default defineConfig({ exclude: ["**/*.{integ,e2e,browser}.spec.ts"], include: ["**/*.spec.ts"], environment: "node", + globals: true, }, }); diff --git a/private/aws-client-retry-test/package.json b/private/aws-client-retry-test/package.json index e84c2edd4aa96..9f9ad2ac32d33 100644 --- a/private/aws-client-retry-test/package.json +++ b/private/aws-client-retry-test/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-client-retry-test/src/ClientRetryTest.spec.ts b/private/aws-client-retry-test/src/ClientRetryTest.spec.ts index c9b47ac07b41b..360e86b19680a 100644 --- a/private/aws-client-retry-test/src/ClientRetryTest.spec.ts +++ b/private/aws-client-retry-test/src/ClientRetryTest.spec.ts @@ -1,10 +1,9 @@ -import { test as it, describe, expect } from "vitest"; - import { HeadObjectCommand, S3, S3Client, S3ServiceException } from "@aws-sdk/client-s3"; import { HttpHandler, HttpResponse } from "@smithy/protocol-http"; import { AwsCredentialIdentity, RequestHandlerOutput } from "@smithy/types"; import { ConfiguredRetryStrategy, StandardRetryStrategy } from "@smithy/util-retry"; import { Readable } from "stream"; +import { describe, expect, test as it, vi } from "vitest"; const MOCK_REGION = "us-west-2"; @@ -66,7 +65,7 @@ describe("util-retry integration tests", () => { }); it("should retry until success", async () => { - const mockHandle = jest + const mockHandle = vi .fn() .mockResolvedValueOnce(mockThrottled) .mockResolvedValueOnce(mockThrottled) diff --git a/private/aws-restjson-server/vitest.config.ts b/private/aws-client-retry-test/vitest.config.js similarity index 91% rename from private/aws-restjson-server/vitest.config.ts rename to private/aws-client-retry-test/vitest.config.js index 4e46707824a58..ff6aa0c5d1dc4 100644 --- a/private/aws-restjson-server/vitest.config.ts +++ b/private/aws-client-retry-test/vitest.config.js @@ -5,5 +5,6 @@ export default defineConfig({ exclude: ["**/*.{integ,e2e,browser}.spec.ts"], include: ["**/*.spec.ts"], environment: "node", + globals: true, }, }); diff --git a/private/aws-echo-service/package.json b/private/aws-echo-service/package.json index ac45a128283e2..23a207df02e31 100644 --- a/private/aws-echo-service/package.json +++ b/private/aws-echo-service/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-restjson-validation-server/vitest.config.ts b/private/aws-echo-service/vitest.config.js similarity index 91% rename from private/aws-restjson-validation-server/vitest.config.ts rename to private/aws-echo-service/vitest.config.js index 4e46707824a58..ff6aa0c5d1dc4 100644 --- a/private/aws-restjson-validation-server/vitest.config.ts +++ b/private/aws-echo-service/vitest.config.js @@ -5,5 +5,6 @@ export default defineConfig({ exclude: ["**/*.{integ,e2e,browser}.spec.ts"], include: ["**/*.spec.ts"], environment: "node", + globals: true, }, }); diff --git a/private/aws-middleware-test/src/middleware-apply-body-checksum.spec.ts b/private/aws-middleware-test/src/middleware-apply-body-checksum.spec.ts index 859ec9cf31dc2..6b8ee965e9c3c 100644 --- a/private/aws-middleware-test/src/middleware-apply-body-checksum.spec.ts +++ b/private/aws-middleware-test/src/middleware-apply-body-checksum.spec.ts @@ -1,5 +1,6 @@ +import { test as it, describe, expect } from "vitest"; + import { S3Control } from "@aws-sdk/client-s3-control"; -import { describe, expect, test as it } from "vitest"; import { requireRequestsFrom } from "../../aws-util-test/src"; diff --git a/private/aws-middleware-test/src/middleware-content-length.spec.ts b/private/aws-middleware-test/src/middleware-content-length.spec.ts index 1ac77a156a815..2c9d73db112b4 100644 --- a/private/aws-middleware-test/src/middleware-content-length.spec.ts +++ b/private/aws-middleware-test/src/middleware-content-length.spec.ts @@ -1,7 +1,8 @@ +import { test as it, describe, expect } from "vitest"; + import { AccessAnalyzer } from "@aws-sdk/client-accessanalyzer"; import { S3 } from "@aws-sdk/client-s3"; import { XRay } from "@aws-sdk/client-xray"; -import { describe, expect, test as it } from "vitest"; import { requireRequestsFrom } from "../../../private/aws-util-test/src"; diff --git a/private/aws-middleware-test/src/middleware-endpoint.spec.ts b/private/aws-middleware-test/src/middleware-endpoint.spec.ts index 6550d1c6d3874..c3b504b8da6ed 100644 --- a/private/aws-middleware-test/src/middleware-endpoint.spec.ts +++ b/private/aws-middleware-test/src/middleware-endpoint.spec.ts @@ -1,6 +1,7 @@ +import { test as it, describe, expect } from "vitest"; + import { S3 } from "@aws-sdk/client-s3"; import { S3Control } from "@aws-sdk/client-s3-control"; -import { describe, expect, test as it } from "vitest"; import { requireRequestsFrom } from "../../aws-util-test/src"; diff --git a/private/aws-middleware-test/src/middleware-retry.spec.ts b/private/aws-middleware-test/src/middleware-retry.spec.ts index 9e8a649cf0fa7..83e13baf61bf5 100644 --- a/private/aws-middleware-test/src/middleware-retry.spec.ts +++ b/private/aws-middleware-test/src/middleware-retry.spec.ts @@ -1,5 +1,6 @@ +import { test as it, describe, expect } from "vitest"; + import { Lambda } from "@aws-sdk/client-lambda"; -import { describe, expect, test as it } from "vitest"; import { requireRequestsFrom } from "../../aws-util-test/src"; diff --git a/private/aws-middleware-test/src/middleware-serde.spec.ts b/private/aws-middleware-test/src/middleware-serde.spec.ts index 7e86611c74628..89c5e26fcbc18 100644 --- a/private/aws-middleware-test/src/middleware-serde.spec.ts +++ b/private/aws-middleware-test/src/middleware-serde.spec.ts @@ -1,8 +1,9 @@ +import { test as it, describe } from "vitest"; + import { EC2 } from "@aws-sdk/client-ec2"; import { S3 } from "@aws-sdk/client-s3"; import { SageMaker } from "@aws-sdk/client-sagemaker"; import { SageMakerRuntime } from "@aws-sdk/client-sagemaker-runtime"; -import { describe, test as it } from "vitest"; import { requireRequestsFrom } from "../../aws-util-test/src"; diff --git a/private/aws-middleware-test/src/util-stream.spec.ts b/private/aws-middleware-test/src/util-stream.spec.ts index dd22adc043659..a069a53c7d875 100644 --- a/private/aws-middleware-test/src/util-stream.spec.ts +++ b/private/aws-middleware-test/src/util-stream.spec.ts @@ -1,10 +1,11 @@ +import { test as it, describe, expect } from "vitest"; + import { Lambda } from "@aws-sdk/client-lambda"; import { HttpHandler, HttpResponse } from "@smithy/protocol-http"; import { HttpRequest as IHttpRequest } from "@smithy/types"; import { Uint8ArrayBlobAdapter } from "@smithy/util-stream"; import { fromUtf8 } from "@smithy/util-utf8"; import { Readable } from "stream"; -import { describe, expect, test as it } from "vitest"; import { requireRequestsFrom } from "../../aws-util-test/src"; diff --git a/private/aws-middleware-test/vitest.config.js b/private/aws-middleware-test/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-middleware-test/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-ec2/package.json b/private/aws-protocoltests-ec2/package.json index 5afedcf05eb39..9104370315380 100644 --- a/private/aws-protocoltests-ec2/package.json +++ b/private/aws-protocoltests-ec2/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts b/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts index e13228cb4ceb7..74ec6870cb556 100644 --- a/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts +++ b/private/aws-protocoltests-ec2/test/functional/ec2query.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Encoder as __Encoder } from "@smithy/types"; diff --git a/private/aws-protocoltests-ec2/vitest.config.js b/private/aws-protocoltests-ec2/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-ec2/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-json-10/package.json b/private/aws-protocoltests-json-10/package.json index a1e64ba1ccb24..524a27bafab58 100644 --- a/private/aws-protocoltests-json-10/package.json +++ b/private/aws-protocoltests-json-10/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-json-10/test/functional/awsjson1_0.spec.ts b/private/aws-protocoltests-json-10/test/functional/awsjson1_0.spec.ts index 34d15b2566dac..a868bb62a1398 100644 --- a/private/aws-protocoltests-json-10/test/functional/awsjson1_0.spec.ts +++ b/private/aws-protocoltests-json-10/test/functional/awsjson1_0.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Encoder as __Encoder } from "@smithy/types"; diff --git a/private/aws-protocoltests-json-10/vitest.config.js b/private/aws-protocoltests-json-10/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-json-10/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-json-machinelearning/package.json b/private/aws-protocoltests-json-machinelearning/package.json index 49627c77bc919..21ee34c02ae8b 100644 --- a/private/aws-protocoltests-json-machinelearning/package.json +++ b/private/aws-protocoltests-json-machinelearning/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-json-machinelearning/test/functional/awsjson1_1.spec.ts b/private/aws-protocoltests-json-machinelearning/test/functional/awsjson1_1.spec.ts index f5da9f1aeec12..38faa1f5dee2d 100644 --- a/private/aws-protocoltests-json-machinelearning/test/functional/awsjson1_1.spec.ts +++ b/private/aws-protocoltests-json-machinelearning/test/functional/awsjson1_1.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Endpoint, HeaderBag, HttpHandlerOptions } from "@smithy/types"; diff --git a/private/aws-protocoltests-json-machinelearning/vitest.config.js b/private/aws-protocoltests-json-machinelearning/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-json-machinelearning/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-json/package.json b/private/aws-protocoltests-json/package.json index 34f7c45b71aa9..d63587d1a3bd9 100644 --- a/private/aws-protocoltests-json/package.json +++ b/private/aws-protocoltests-json/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-json/test/functional/awsjson1_1.spec.ts b/private/aws-protocoltests-json/test/functional/awsjson1_1.spec.ts index e40ca3bf6d8c8..d34e81ffd364d 100644 --- a/private/aws-protocoltests-json/test/functional/awsjson1_1.spec.ts +++ b/private/aws-protocoltests-json/test/functional/awsjson1_1.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Encoder as __Encoder } from "@smithy/types"; diff --git a/private/aws-protocoltests-json/vitest.config.js b/private/aws-protocoltests-json/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-json/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-query/package.json b/private/aws-protocoltests-query/package.json index ae87f5af87c0a..376a87d851b71 100644 --- a/private/aws-protocoltests-query/package.json +++ b/private/aws-protocoltests-query/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-query/test/functional/awsquery.spec.ts b/private/aws-protocoltests-query/test/functional/awsquery.spec.ts index 9d46692bba863..b7c25a4c73211 100644 --- a/private/aws-protocoltests-query/test/functional/awsquery.spec.ts +++ b/private/aws-protocoltests-query/test/functional/awsquery.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Encoder as __Encoder } from "@smithy/types"; diff --git a/private/aws-protocoltests-query/vitest.config.js b/private/aws-protocoltests-query/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-query/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-restjson-apigateway/package.json b/private/aws-protocoltests-restjson-apigateway/package.json index d11a32bf17708..3d89bbee1de40 100644 --- a/private/aws-protocoltests-restjson-apigateway/package.json +++ b/private/aws-protocoltests-restjson-apigateway/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restjson-apigateway/test/functional/restjson1.spec.ts b/private/aws-protocoltests-restjson-apigateway/test/functional/restjson1.spec.ts index d2d682bd4e730..cb593a773ca7b 100644 --- a/private/aws-protocoltests-restjson-apigateway/test/functional/restjson1.spec.ts +++ b/private/aws-protocoltests-restjson-apigateway/test/functional/restjson1.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Endpoint, HeaderBag, HttpHandlerOptions } from "@smithy/types"; diff --git a/private/aws-protocoltests-restjson-apigateway/vitest.config.js b/private/aws-protocoltests-restjson-apigateway/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-restjson-apigateway/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-restjson-glacier/package.json b/private/aws-protocoltests-restjson-glacier/package.json index 5260ea058d634..5ba954b25d139 100644 --- a/private/aws-protocoltests-restjson-glacier/package.json +++ b/private/aws-protocoltests-restjson-glacier/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restjson-glacier/test/functional/restjson1.spec.ts b/private/aws-protocoltests-restjson-glacier/test/functional/restjson1.spec.ts index a3f1cddf8c127..638364712ffb7 100644 --- a/private/aws-protocoltests-restjson-glacier/test/functional/restjson1.spec.ts +++ b/private/aws-protocoltests-restjson-glacier/test/functional/restjson1.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Encoder as __Encoder } from "@smithy/types"; diff --git a/private/aws-protocoltests-restjson-glacier/vitest.config.js b/private/aws-protocoltests-restjson-glacier/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-restjson-glacier/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-restjson/package.json b/private/aws-protocoltests-restjson/package.json index 078c950685070..36409c3dafa21 100644 --- a/private/aws-protocoltests-restjson/package.json +++ b/private/aws-protocoltests-restjson/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts b/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts index 80838604de6c5..71ec51800e3d8 100644 --- a/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts +++ b/private/aws-protocoltests-restjson/test/functional/restjson1.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { buildQueryString } from "@smithy/querystring-builder"; diff --git a/private/aws-protocoltests-restjson/vitest.config.js b/private/aws-protocoltests-restjson/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-restjson/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index 5091059cacefa..b237b1d296ca9 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts b/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts index fcdeef677c5e0..356b2d6f8e621 100644 --- a/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts +++ b/private/aws-protocoltests-restxml/test/functional/restxml.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { buildQueryString } from "@smithy/querystring-builder"; diff --git a/private/aws-protocoltests-restxml/vitest.config.js b/private/aws-protocoltests-restxml/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-restxml/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-protocoltests-smithy-rpcv2-cbor/package.json b/private/aws-protocoltests-smithy-rpcv2-cbor/package.json index 000bb767ed22c..03861480ca5ea 100644 --- a/private/aws-protocoltests-smithy-rpcv2-cbor/package.json +++ b/private/aws-protocoltests-smithy-rpcv2-cbor/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "vitest run", + "test:watch": "vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-smithy-rpcv2-cbor/test/functional/rpcv2cbor.spec.ts b/private/aws-protocoltests-smithy-rpcv2-cbor/test/functional/rpcv2cbor.spec.ts index 96560658875ed..cb2fb1599e3b8 100644 --- a/private/aws-protocoltests-smithy-rpcv2-cbor/test/functional/rpcv2cbor.spec.ts +++ b/private/aws-protocoltests-smithy-rpcv2-cbor/test/functional/rpcv2cbor.spec.ts @@ -1,5 +1,3 @@ -import { test as it, expect } from "vitest"; - // smithy-typescript generated code import { cbor } from "@smithy/core/cbor"; import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; diff --git a/private/aws-protocoltests-smithy-rpcv2-cbor/vitest.config.js b/private/aws-protocoltests-smithy-rpcv2-cbor/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-protocoltests-smithy-rpcv2-cbor/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-restjson-server/jest.config.js b/private/aws-restjson-server/jest.config.js new file mode 100644 index 0000000000000..a8d1c2e499123 --- /dev/null +++ b/private/aws-restjson-server/jest.config.js @@ -0,0 +1,5 @@ +const base = require("../../jest.config.base.js"); + +module.exports = { + ...base, +}; diff --git a/private/aws-restjson-server/package.json b/private/aws-restjson-server/package.json index d91bff735b63a..156487ec43327 100644 --- a/private/aws-restjson-server/package.json +++ b/private/aws-restjson-server/package.json @@ -11,8 +11,7 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "prepack": "yarn run clean && yarn run build", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "jest --coverage --passWithNoTests" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-restjson-server/test/functional/restjson1.spec.ts b/private/aws-restjson-server/test/functional/restjson1.spec.ts index 3c1cf97711242..520582a769bf6 100644 --- a/private/aws-restjson-server/test/functional/restjson1.spec.ts +++ b/private/aws-restjson-server/test/functional/restjson1.spec.ts @@ -1,5 +1,3 @@ -import { test as it, vi, expect } from "vitest"; - // smithy-typescript generated code import { httpbinding, @@ -441,7 +439,7 @@ function normalizeByteArrayType(data: any) { * Serializes query string parameters with all supported types */ it("RestJsonAllQueryStringTypes:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { AllQueryStringTypes: testFunction as AllQueryStringTypes<{}>, @@ -545,7 +543,7 @@ it("RestJsonAllQueryStringTypes:ServerRequest", async () => { * Handles query string maps */ it("RestJsonQueryStringMap:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { AllQueryStringTypes: testFunction as AllQueryStringTypes<{}>, @@ -593,7 +591,7 @@ it("RestJsonQueryStringMap:ServerRequest", async () => { * Handles escaping all required characters in the query string. */ it("RestJsonQueryStringEscaping:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { AllQueryStringTypes: testFunction as AllQueryStringTypes<{}>, @@ -640,7 +638,7 @@ it("RestJsonQueryStringEscaping:ServerRequest", async () => { * Supports handling NaN float query values. */ it("RestJsonSupportsNaNFloatQueryValues:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { AllQueryStringTypes: testFunction as AllQueryStringTypes<{}>, @@ -690,7 +688,7 @@ it("RestJsonSupportsNaNFloatQueryValues:ServerRequest", async () => { * Supports handling Infinity float query values. */ it("RestJsonSupportsInfinityFloatQueryValues:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { AllQueryStringTypes: testFunction as AllQueryStringTypes<{}>, @@ -740,7 +738,7 @@ it("RestJsonSupportsInfinityFloatQueryValues:ServerRequest", async () => { * Supports handling -Infinity float query values. */ it("RestJsonSupportsNegativeInfinityFloatQueryValues:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { AllQueryStringTypes: testFunction as AllQueryStringTypes<{}>, @@ -790,7 +788,7 @@ it("RestJsonSupportsNegativeInfinityFloatQueryValues:ServerRequest", async () => * Query values of 0 and false are serialized */ it("RestJsonZeroAndFalseQueryValues:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { AllQueryStringTypes: testFunction as AllQueryStringTypes<{}>, @@ -840,7 +838,7 @@ it("RestJsonZeroAndFalseQueryValues:ServerRequest", async () => { * Mixes constant and variable query string parameters */ it("RestJsonConstantAndVariableQueryStringMissingOneValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { ConstantAndVariableQueryString: testFunction as ConstantAndVariableQueryString<{}>, @@ -885,7 +883,7 @@ it("RestJsonConstantAndVariableQueryStringMissingOneValue:ServerRequest", async * Mixes constant and variable query string parameters */ it("RestJsonConstantAndVariableQueryStringAllValues:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { ConstantAndVariableQueryString: testFunction as ConstantAndVariableQueryString<{}>, @@ -932,7 +930,7 @@ it("RestJsonConstantAndVariableQueryStringAllValues:ServerRequest", async () => * Includes constant query string parameters */ it("RestJsonConstantQueryString:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { ConstantQueryString: testFunction as ConstantQueryString<{}>, @@ -977,7 +975,7 @@ it("RestJsonConstantQueryString:ServerRequest", async () => { * A server should ignore parameters added to the content type */ it.skip("RestJsonMustSupportParametersInContentType:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { ContentTypeParameters: testFunction as ContentTypeParameters<{}>, @@ -1021,7 +1019,7 @@ it.skip("RestJsonMustSupportParametersInContentType:ServerRequest", async () => * Serializes document types as part of the JSON request payload with no escaping. */ it("DocumentTypeInputWithObject:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentType: testFunction as DocumentType<{}>, @@ -1068,7 +1066,7 @@ it("DocumentTypeInputWithObject:ServerRequest", async () => { * Serializes document types using a string. */ it("DocumentInputWithString:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentType: testFunction as DocumentType<{}>, @@ -1113,7 +1111,7 @@ it("DocumentInputWithString:ServerRequest", async () => { * Serializes document types using a number. */ it("DocumentInputWithNumber:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentType: testFunction as DocumentType<{}>, @@ -1158,7 +1156,7 @@ it("DocumentInputWithNumber:ServerRequest", async () => { * Serializes document types using a boolean. */ it("DocumentInputWithBoolean:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentType: testFunction as DocumentType<{}>, @@ -1203,7 +1201,7 @@ it("DocumentInputWithBoolean:ServerRequest", async () => { * Serializes document types using a list. */ it("DocumentInputWithList:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentType: testFunction as DocumentType<{}>, @@ -1566,7 +1564,7 @@ it("DocumentOutputArray:ServerResponse", async () => { * Serializes a map that uses documents as the value. */ it("DocumentTypeAsMapValueInput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentTypeAsMapValue: testFunction as DocumentTypeAsMapValue<{}>, @@ -1688,7 +1686,7 @@ it("DocumentTypeAsMapValueOutput:ServerResponse", async () => { * Serializes a document as the target of the httpPayload trait. */ it("DocumentTypeAsPayloadInput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentTypeAsPayload: testFunction as DocumentTypeAsPayload<{}>, @@ -1734,7 +1732,7 @@ it("DocumentTypeAsPayloadInput:ServerRequest", async () => { * Serializes a document as the target of the httpPayload trait using a string. */ it("DocumentTypeAsPayloadInputString:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { DocumentTypeAsPayload: testFunction as DocumentTypeAsPayload<{}>, @@ -1896,7 +1894,7 @@ it("DocumentTypeAsPayloadOutputString:ServerResponse", async () => { * clients that omit a payload or that send a JSON object. */ it("RestJsonEmptyInputAndEmptyOutput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { EmptyInputAndEmptyOutput: testFunction as EmptyInputAndEmptyOutput<{}>, @@ -1929,7 +1927,7 @@ it("RestJsonEmptyInputAndEmptyOutput:ServerRequest", async () => { * services gracefully handles receiving a JSON object. */ it("RestJsonEmptyInputAndEmptyOutputWithJson:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { EmptyInputAndEmptyOutput: testFunction as EmptyInputAndEmptyOutput<{}>, @@ -2020,7 +2018,7 @@ it("RestJsonEmptyInputAndEmptyOutput:ServerResponse", async () => { * endpoint trait. */ it("RestJsonEndpointTrait:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { EndpointOperation: testFunction as EndpointOperation<{}>, @@ -2054,7 +2052,7 @@ it("RestJsonEndpointTrait:ServerRequest", async () => { * further customization based on user input. */ it("RestJsonEndpointTraitWithHostLabel:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { EndpointWithHostLabelOperation: testFunction as EndpointWithHostLabelOperation<{}>, @@ -2356,7 +2354,7 @@ it("RestJsonInvalidGreetingError:ServerErrorResponse", async () => { * Adds Content-MD5 header */ it("RestJsonHttpChecksumRequired:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpChecksumRequired: testFunction as HttpChecksumRequired<{}>, @@ -2398,7 +2396,7 @@ it("RestJsonHttpChecksumRequired:ServerRequest", async () => { }); it("RestJsonEnumPayloadRequest:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpEnumPayload: testFunction as HttpEnumPayload<{}>, @@ -2495,7 +2493,7 @@ it("RestJsonEnumPayloadResponse:ServerResponse", async () => { * Serializes a blob in the HTTP payload */ it("RestJsonHttpPayloadTraitsWithBlob:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadTraits: testFunction as HttpPayloadTraits<{}>, @@ -2541,7 +2539,7 @@ it("RestJsonHttpPayloadTraitsWithBlob:ServerRequest", async () => { * Serializes an empty blob in the HTTP payload */ it("RestJsonHttpPayloadTraitsWithNoBlobBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadTraits: testFunction as HttpPayloadTraits<{}>, @@ -2586,7 +2584,7 @@ it("RestJsonHttpPayloadTraitsWithNoBlobBody:ServerRequest", async () => { * without the media type trait. */ it("RestJsonHttpPayloadTraitsWithBlobAcceptsAllContentTypes:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadTraits: testFunction as HttpPayloadTraits<{}>, @@ -2633,7 +2631,7 @@ it("RestJsonHttpPayloadTraitsWithBlobAcceptsAllContentTypes:ServerRequest", asyn * without the media type trait. */ it("RestJsonHttpPayloadTraitsWithBlobAcceptsNoContentType:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadTraits: testFunction as HttpPayloadTraits<{}>, @@ -2679,7 +2677,7 @@ it("RestJsonHttpPayloadTraitsWithBlobAcceptsNoContentType:ServerRequest", async * without the media type trait. */ it("RestJsonHttpPayloadTraitsWithBlobAcceptsAllAccepts:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadTraits: testFunction as HttpPayloadTraits<{}>, @@ -2834,7 +2832,7 @@ it("RestJsonHttpPayloadTraitsWithNoBlobBody:ServerResponse", async () => { * Serializes a blob in the HTTP payload with a content-type */ it("RestJsonHttpPayloadTraitsWithMediaTypeWithBlob:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadTraitsWithMediaType: testFunction as HttpPayloadTraitsWithMediaType<{}>, @@ -2939,7 +2937,7 @@ it("RestJsonHttpPayloadTraitsWithMediaTypeWithBlob:ServerResponse", async () => * Serializes a structure in the payload */ it("RestJsonHttpPayloadWithStructure:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadWithStructure: testFunction as HttpPayloadWithStructure<{}>, @@ -3048,7 +3046,7 @@ it("RestJsonHttpPayloadWithStructure:ServerResponse", async () => { * Serializes a union in the payload. */ it("RestJsonHttpPayloadWithUnion:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadWithUnion: testFunction as HttpPayloadWithUnion<{}>, @@ -3094,7 +3092,7 @@ it("RestJsonHttpPayloadWithUnion:ServerRequest", async () => { * No payload is sent if the union has no value. */ it.skip("RestJsonHttpPayloadWithUnsetUnion:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPayloadWithUnion: testFunction as HttpPayloadWithUnion<{}>, @@ -3236,7 +3234,7 @@ it.skip("RestJsonHttpPayloadWithUnsetUnion:ServerResponse", async () => { * Adds headers by prefix */ it("RestJsonHttpPrefixHeadersArePresent:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpPrefixHeaders: testFunction as HttpPrefixHeaders<{}>, @@ -3399,7 +3397,7 @@ it("HttpPrefixHeadersResponse:ServerResponse", async () => { * Supports handling NaN float label values. */ it("RestJsonSupportsNaNFloatLabels:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithFloatLabels: testFunction as HttpRequestWithFloatLabels<{}>, @@ -3442,7 +3440,7 @@ it("RestJsonSupportsNaNFloatLabels:ServerRequest", async () => { * Supports handling Infinity float label values. */ it("RestJsonSupportsInfinityFloatLabels:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithFloatLabels: testFunction as HttpRequestWithFloatLabels<{}>, @@ -3485,7 +3483,7 @@ it("RestJsonSupportsInfinityFloatLabels:ServerRequest", async () => { * Supports handling -Infinity float label values. */ it("RestJsonSupportsNegativeInfinityFloatLabels:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithFloatLabels: testFunction as HttpRequestWithFloatLabels<{}>, @@ -3528,7 +3526,7 @@ it("RestJsonSupportsNegativeInfinityFloatLabels:ServerRequest", async () => { * Serializes greedy labels and normal labels */ it("RestJsonHttpRequestWithGreedyLabelInPath:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithGreedyLabelInPath: testFunction as HttpRequestWithGreedyLabelInPath<{}>, @@ -3571,7 +3569,7 @@ it("RestJsonHttpRequestWithGreedyLabelInPath:ServerRequest", async () => { * Sends a GET request that uses URI label bindings */ it("RestJsonInputWithHeadersAndAllParams:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithLabels: testFunction as HttpRequestWithLabels<{}>, @@ -3620,7 +3618,7 @@ it("RestJsonInputWithHeadersAndAllParams:ServerRequest", async () => { * Sends a GET request that uses URI label bindings */ it("RestJsonHttpRequestLabelEscaping:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithLabels: testFunction as HttpRequestWithLabels<{}>, @@ -3669,7 +3667,7 @@ it("RestJsonHttpRequestLabelEscaping:ServerRequest", async () => { * Serializes different timestamp formats in URI labels */ it("RestJsonHttpRequestWithLabelsAndTimestampFormat:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithLabelsAndTimestampFormat: testFunction as HttpRequestWithLabelsAndTimestampFormat<{}>, @@ -3717,7 +3715,7 @@ it("RestJsonHttpRequestWithLabelsAndTimestampFormat:ServerRequest", async () => * Path matching is not broken by regex expressions in literal segments */ it("RestJsonToleratesRegexCharsInSegments:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpRequestWithRegexLiteral: testFunction as HttpRequestWithRegexLiteral<{}>, @@ -3873,7 +3871,7 @@ it("RestJsonHttpResponseCodeDefaultsToModeledCode:ServerResponse", async () => { }); it("RestJsonStringPayloadRequest:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { HttpStringPayload: testFunction as HttpStringPayload<{}>, @@ -3970,7 +3968,7 @@ it("RestJsonStringPayloadResponse:ServerResponse", async () => { * Serializes a string in the HTTP payload without a content-type header */ it.skip("RestJsonStringPayloadNoContentType:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4006,7 +4004,7 @@ it.skip("RestJsonStringPayloadNoContentType:MalformedRequest", async () => { * Serializes a string in the HTTP payload without the expected content-type header */ it("RestJsonStringPayloadWrongContentType:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4044,7 +4042,7 @@ it("RestJsonStringPayloadWrongContentType:MalformedRequest", async () => { * Serializes a string in the HTTP payload with an unstatisfiable accept header */ it("RestJsonStringPayloadUnsatisfiableAccept:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4140,7 +4138,7 @@ it("RestJsonIgnoreQueryParamsInResponse:ServerResponse", async () => { * Tests requests with string header bindings */ it("RestJsonInputAndOutputWithStringHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4188,7 +4186,7 @@ it("RestJsonInputAndOutputWithStringHeaders:ServerRequest", async () => { * Tests requests with string list header bindings that require quoting */ it("RestJsonInputAndOutputWithQuotedStringHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4232,7 +4230,7 @@ it("RestJsonInputAndOutputWithQuotedStringHeaders:ServerRequest", async () => { * Tests requests with numeric header bindings */ it("RestJsonInputAndOutputWithNumericHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4288,7 +4286,7 @@ it("RestJsonInputAndOutputWithNumericHeaders:ServerRequest", async () => { * Tests requests with boolean header bindings */ it("RestJsonInputAndOutputWithBooleanHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4336,7 +4334,7 @@ it("RestJsonInputAndOutputWithBooleanHeaders:ServerRequest", async () => { * Tests requests with timestamp header bindings */ it("RestJsonInputAndOutputWithTimestampHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4380,7 +4378,7 @@ it("RestJsonInputAndOutputWithTimestampHeaders:ServerRequest", async () => { * Tests requests with enum header bindings */ it("RestJsonInputAndOutputWithEnumHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4426,7 +4424,7 @@ it("RestJsonInputAndOutputWithEnumHeaders:ServerRequest", async () => { * Tests requests with intEnum header bindings */ it("RestJsonInputAndOutputWithIntEnumHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4472,7 +4470,7 @@ it("RestJsonInputAndOutputWithIntEnumHeaders:ServerRequest", async () => { * Supports handling NaN float header values. */ it("RestJsonSupportsNaNFloatHeaderInputs:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4518,7 +4516,7 @@ it("RestJsonSupportsNaNFloatHeaderInputs:ServerRequest", async () => { * Supports handling Infinity float header values. */ it("RestJsonSupportsInfinityFloatHeaderInputs:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -4564,7 +4562,7 @@ it("RestJsonSupportsInfinityFloatHeaderInputs:ServerRequest", async () => { * Supports handling -Infinity float header values. */ it("RestJsonSupportsNegativeInfinityFloatHeaderInputs:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { InputAndOutputWithHeaders: testFunction as InputAndOutputWithHeaders<{}>, @@ -5155,7 +5153,7 @@ it("RestJsonSupportsNegativeInfinityFloatHeaderOutputs:ServerResponse", async () * Blobs are base64 encoded */ it("RestJsonJsonBlobs:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonBlobs: testFunction as JsonBlobs<{}>, @@ -5257,7 +5255,7 @@ it("RestJsonJsonBlobs:ServerResponse", async () => { * Serializes simple scalar properties */ it("RestJsonJsonEnums:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonEnums: testFunction as JsonEnums<{}>, @@ -5391,7 +5389,7 @@ it("RestJsonJsonEnums:ServerResponse", async () => { * Serializes intEnums as integers */ it("RestJsonJsonIntEnums:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonIntEnums: testFunction as JsonIntEnums<{}>, @@ -5526,7 +5524,7 @@ it("RestJsonJsonIntEnums:ServerResponse", async () => { * Serializes JSON lists */ it("RestJsonLists:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonLists: testFunction as JsonLists<{}>, @@ -5592,7 +5590,7 @@ it("RestJsonLists:ServerRequest", async () => { * Serializes empty JSON lists */ it("RestJsonListsEmpty:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonLists: testFunction as JsonLists<{}>, @@ -5819,7 +5817,7 @@ it("RestJsonListsEmpty:ServerResponse", async () => { * Serializes JSON maps */ it("RestJsonJsonMaps:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonMaps: testFunction as JsonMaps<{}>, @@ -5872,7 +5870,7 @@ it("RestJsonJsonMaps:ServerRequest", async () => { * Ensure that 0 and false are sent over the wire in all maps and lists */ it("RestJsonSerializesZeroValuesInMaps:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonMaps: testFunction as JsonMaps<{}>, @@ -5923,7 +5921,7 @@ it("RestJsonSerializesZeroValuesInMaps:ServerRequest", async () => { * A request that contains a dense map of sets. */ it("RestJsonSerializesDenseSetMap:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonMaps: testFunction as JsonMaps<{}>, @@ -6174,7 +6172,7 @@ it("RestJsonDeserializesDenseSetMap:ServerResponse", async () => { * Tests how normal timestamps are serialized */ it("RestJsonJsonTimestamps:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonTimestamps: testFunction as JsonTimestamps<{}>, @@ -6218,7 +6216,7 @@ it("RestJsonJsonTimestamps:ServerRequest", async () => { * Ensures that the timestampFormat of date-time works like normal timestamps */ it("RestJsonJsonTimestampsWithDateTimeFormat:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonTimestamps: testFunction as JsonTimestamps<{}>, @@ -6262,7 +6260,7 @@ it("RestJsonJsonTimestampsWithDateTimeFormat:ServerRequest", async () => { * Ensures that the timestampFormat of date-time on the target shape works like normal timestamps */ it("RestJsonJsonTimestampsWithDateTimeOnTargetFormat:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonTimestamps: testFunction as JsonTimestamps<{}>, @@ -6306,7 +6304,7 @@ it("RestJsonJsonTimestampsWithDateTimeOnTargetFormat:ServerRequest", async () => * Ensures that the timestampFormat of epoch-seconds works */ it("RestJsonJsonTimestampsWithEpochSecondsFormat:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonTimestamps: testFunction as JsonTimestamps<{}>, @@ -6350,7 +6348,7 @@ it("RestJsonJsonTimestampsWithEpochSecondsFormat:ServerRequest", async () => { * Ensures that the timestampFormat of epoch-seconds on the target shape works */ it("RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonTimestamps: testFunction as JsonTimestamps<{}>, @@ -6394,7 +6392,7 @@ it("RestJsonJsonTimestampsWithEpochSecondsOnTargetFormat:ServerRequest", async ( * Ensures that the timestampFormat of http-date works */ it("RestJsonJsonTimestampsWithHttpDateFormat:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonTimestamps: testFunction as JsonTimestamps<{}>, @@ -6438,7 +6436,7 @@ it("RestJsonJsonTimestampsWithHttpDateFormat:ServerRequest", async () => { * Ensures that the timestampFormat of http-date on the target shape works */ it("RestJsonJsonTimestampsWithHttpDateOnTargetFormat:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonTimestamps: testFunction as JsonTimestamps<{}>, @@ -6888,7 +6886,7 @@ it("RestJsonJsonTimestampsWithHttpDateOnTargetFormat:ServerResponse", async () = * Serializes a string union value */ it("RestJsonSerializeStringUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -6934,7 +6932,7 @@ it("RestJsonSerializeStringUnionValue:ServerRequest", async () => { * Serializes a boolean union value */ it("RestJsonSerializeBooleanUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -6980,7 +6978,7 @@ it("RestJsonSerializeBooleanUnionValue:ServerRequest", async () => { * Serializes a number union value */ it("RestJsonSerializeNumberUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7026,7 +7024,7 @@ it("RestJsonSerializeNumberUnionValue:ServerRequest", async () => { * Serializes a blob union value */ it("RestJsonSerializeBlobUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7072,7 +7070,7 @@ it("RestJsonSerializeBlobUnionValue:ServerRequest", async () => { * Serializes a timestamp union value */ it("RestJsonSerializeTimestampUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7118,7 +7116,7 @@ it("RestJsonSerializeTimestampUnionValue:ServerRequest", async () => { * Serializes an enum union value */ it("RestJsonSerializeEnumUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7164,7 +7162,7 @@ it("RestJsonSerializeEnumUnionValue:ServerRequest", async () => { * Serializes a list union value */ it("RestJsonSerializeListUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7210,7 +7208,7 @@ it("RestJsonSerializeListUnionValue:ServerRequest", async () => { * Serializes a map union value */ it("RestJsonSerializeMapUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7261,7 +7259,7 @@ it("RestJsonSerializeMapUnionValue:ServerRequest", async () => { * Serializes a structure union value */ it("RestJsonSerializeStructureUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7311,7 +7309,7 @@ it("RestJsonSerializeStructureUnionValue:ServerRequest", async () => { * Serializes a renamed structure union value */ it("RestJsonSerializeRenamedStructureUnionValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { JsonUnions: testFunction as JsonUnions<{}>, @@ -7929,7 +7927,7 @@ it("RestJsonDeserializeStructureUnionValue:ServerResponse", async () => { * When there is modeled output, the accept must be application/json */ it("RestJsonWithBodyExpectsApplicationJsonAccept:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -7967,7 +7965,7 @@ it("RestJsonWithBodyExpectsApplicationJsonAccept:MalformedRequest", async () => * implied content type of the shape. */ it("RestJsonWithPayloadExpectsImpliedAccept:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8004,7 +8002,7 @@ it("RestJsonWithPayloadExpectsImpliedAccept:MalformedRequest", async () => { * When there is a payload with a mediaType trait, the accept must match. */ it("RestJsonWithPayloadExpectsModeledAccept:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8042,7 +8040,7 @@ it("RestJsonWithPayloadExpectsModeledAccept:MalformedRequest", async () => { * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8081,7 +8079,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case0:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8120,7 +8118,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case1:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8159,7 +8157,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case2:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8198,7 +8196,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case3:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8237,7 +8235,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case4:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8276,7 +8274,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case5:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8315,7 +8313,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case6:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8354,7 +8352,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case7:MalformedRequest", async () => * all, the response should be a 400 SerializationException. */ it("RestJsonBodyMalformedBlobInvalidBase64_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8392,7 +8390,7 @@ it("RestJsonBodyMalformedBlobInvalidBase64_case8:MalformedRequest", async () => * Attempted string coercion should result in SerializationException */ it.skip("RestJsonBodyBooleanStringCoercion_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8430,7 +8428,7 @@ it.skip("RestJsonBodyBooleanStringCoercion_case0:MalformedRequest", async () => * Attempted string coercion should result in SerializationException */ it.skip("RestJsonBodyBooleanStringCoercion_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8468,7 +8466,7 @@ it.skip("RestJsonBodyBooleanStringCoercion_case1:MalformedRequest", async () => * Attempted string coercion should result in SerializationException */ it.skip("RestJsonBodyBooleanStringCoercion_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8506,7 +8504,7 @@ it.skip("RestJsonBodyBooleanStringCoercion_case2:MalformedRequest", async () => * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8544,7 +8542,7 @@ it("RestJsonBodyBooleanStringCoercion_case3:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8582,7 +8580,7 @@ it("RestJsonBodyBooleanStringCoercion_case4:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8620,7 +8618,7 @@ it("RestJsonBodyBooleanStringCoercion_case5:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8658,7 +8656,7 @@ it("RestJsonBodyBooleanStringCoercion_case6:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8696,7 +8694,7 @@ it("RestJsonBodyBooleanStringCoercion_case7:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8734,7 +8732,7 @@ it("RestJsonBodyBooleanStringCoercion_case8:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8772,7 +8770,7 @@ it("RestJsonBodyBooleanStringCoercion_case9:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8810,7 +8808,7 @@ it("RestJsonBodyBooleanStringCoercion_case10:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8848,7 +8846,7 @@ it("RestJsonBodyBooleanStringCoercion_case11:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it.skip("RestJsonBodyBooleanStringCoercion_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8886,7 +8884,7 @@ it.skip("RestJsonBodyBooleanStringCoercion_case12:MalformedRequest", async () => * Attempted string coercion should result in SerializationException */ it.skip("RestJsonBodyBooleanStringCoercion_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8924,7 +8922,7 @@ it.skip("RestJsonBodyBooleanStringCoercion_case13:MalformedRequest", async () => * Attempted string coercion should result in SerializationException */ it.skip("RestJsonBodyBooleanStringCoercion_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -8962,7 +8960,7 @@ it.skip("RestJsonBodyBooleanStringCoercion_case14:MalformedRequest", async () => * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case15:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9000,7 +8998,7 @@ it("RestJsonBodyBooleanStringCoercion_case15:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case16:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9038,7 +9036,7 @@ it("RestJsonBodyBooleanStringCoercion_case16:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case17:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9076,7 +9074,7 @@ it("RestJsonBodyBooleanStringCoercion_case17:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case18:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9114,7 +9112,7 @@ it("RestJsonBodyBooleanStringCoercion_case18:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case19:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9152,7 +9150,7 @@ it("RestJsonBodyBooleanStringCoercion_case19:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case20:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9190,7 +9188,7 @@ it("RestJsonBodyBooleanStringCoercion_case20:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case21:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9228,7 +9226,7 @@ it("RestJsonBodyBooleanStringCoercion_case21:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case22:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9266,7 +9264,7 @@ it("RestJsonBodyBooleanStringCoercion_case22:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonBodyBooleanStringCoercion_case23:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9304,7 +9302,7 @@ it("RestJsonBodyBooleanStringCoercion_case23:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9342,7 +9340,7 @@ it("RestJsonBodyBooleanBadLiteral_case0:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9380,7 +9378,7 @@ it("RestJsonBodyBooleanBadLiteral_case1:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9418,7 +9416,7 @@ it("RestJsonBodyBooleanBadLiteral_case2:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9456,7 +9454,7 @@ it("RestJsonBodyBooleanBadLiteral_case3:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9494,7 +9492,7 @@ it("RestJsonBodyBooleanBadLiteral_case4:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9532,7 +9530,7 @@ it("RestJsonBodyBooleanBadLiteral_case5:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9570,7 +9568,7 @@ it("RestJsonBodyBooleanBadLiteral_case6:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it.skip("RestJsonBodyBooleanBadLiteral_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9608,7 +9606,7 @@ it.skip("RestJsonBodyBooleanBadLiteral_case7:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9646,7 +9644,7 @@ it("RestJsonBodyBooleanBadLiteral_case8:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9684,7 +9682,7 @@ it("RestJsonBodyBooleanBadLiteral_case9:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9722,7 +9720,7 @@ it("RestJsonBodyBooleanBadLiteral_case10:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9760,7 +9758,7 @@ it("RestJsonBodyBooleanBadLiteral_case11:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9798,7 +9796,7 @@ it("RestJsonBodyBooleanBadLiteral_case12:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9836,7 +9834,7 @@ it("RestJsonBodyBooleanBadLiteral_case13:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9874,7 +9872,7 @@ it("RestJsonBodyBooleanBadLiteral_case14:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case15:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9912,7 +9910,7 @@ it("RestJsonBodyBooleanBadLiteral_case15:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case16:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9950,7 +9948,7 @@ it("RestJsonBodyBooleanBadLiteral_case16:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case17:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -9988,7 +9986,7 @@ it("RestJsonBodyBooleanBadLiteral_case17:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it.skip("RestJsonBodyBooleanBadLiteral_case18:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10026,7 +10024,7 @@ it.skip("RestJsonBodyBooleanBadLiteral_case18:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case19:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10064,7 +10062,7 @@ it("RestJsonBodyBooleanBadLiteral_case19:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case20:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10102,7 +10100,7 @@ it("RestJsonBodyBooleanBadLiteral_case20:MalformedRequest", async () => { * YAML-style alternate boolean literals should result in SerializationException */ it("RestJsonBodyBooleanBadLiteral_case21:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10140,7 +10138,7 @@ it("RestJsonBodyBooleanBadLiteral_case21:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10175,7 +10173,7 @@ it("RestJsonPathBooleanStringCoercion_case0:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10210,7 +10208,7 @@ it("RestJsonPathBooleanStringCoercion_case1:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10245,7 +10243,7 @@ it("RestJsonPathBooleanStringCoercion_case2:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10280,7 +10278,7 @@ it("RestJsonPathBooleanStringCoercion_case3:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10315,7 +10313,7 @@ it("RestJsonPathBooleanStringCoercion_case4:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10350,7 +10348,7 @@ it("RestJsonPathBooleanStringCoercion_case5:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10385,7 +10383,7 @@ it("RestJsonPathBooleanStringCoercion_case6:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10420,7 +10418,7 @@ it("RestJsonPathBooleanStringCoercion_case7:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10455,7 +10453,7 @@ it("RestJsonPathBooleanStringCoercion_case8:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10490,7 +10488,7 @@ it("RestJsonPathBooleanStringCoercion_case9:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10525,7 +10523,7 @@ it("RestJsonPathBooleanStringCoercion_case10:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10560,7 +10558,7 @@ it("RestJsonPathBooleanStringCoercion_case11:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10595,7 +10593,7 @@ it("RestJsonPathBooleanStringCoercion_case12:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10630,7 +10628,7 @@ it("RestJsonPathBooleanStringCoercion_case13:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10665,7 +10663,7 @@ it("RestJsonPathBooleanStringCoercion_case14:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case15:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10700,7 +10698,7 @@ it("RestJsonPathBooleanStringCoercion_case15:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case16:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10735,7 +10733,7 @@ it("RestJsonPathBooleanStringCoercion_case16:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case17:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10770,7 +10768,7 @@ it("RestJsonPathBooleanStringCoercion_case17:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case18:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10805,7 +10803,7 @@ it("RestJsonPathBooleanStringCoercion_case18:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case19:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10840,7 +10838,7 @@ it("RestJsonPathBooleanStringCoercion_case19:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case20:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10875,7 +10873,7 @@ it("RestJsonPathBooleanStringCoercion_case20:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonPathBooleanStringCoercion_case21:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10910,7 +10908,7 @@ it("RestJsonPathBooleanStringCoercion_case21:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10947,7 +10945,7 @@ it("RestJsonQueryBooleanStringCoercion_case0:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -10984,7 +10982,7 @@ it("RestJsonQueryBooleanStringCoercion_case1:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11021,7 +11019,7 @@ it("RestJsonQueryBooleanStringCoercion_case2:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11058,7 +11056,7 @@ it("RestJsonQueryBooleanStringCoercion_case3:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11095,7 +11093,7 @@ it("RestJsonQueryBooleanStringCoercion_case4:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11132,7 +11130,7 @@ it("RestJsonQueryBooleanStringCoercion_case5:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11169,7 +11167,7 @@ it("RestJsonQueryBooleanStringCoercion_case6:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11206,7 +11204,7 @@ it("RestJsonQueryBooleanStringCoercion_case7:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11243,7 +11241,7 @@ it("RestJsonQueryBooleanStringCoercion_case8:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11280,7 +11278,7 @@ it("RestJsonQueryBooleanStringCoercion_case9:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11317,7 +11315,7 @@ it("RestJsonQueryBooleanStringCoercion_case10:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11354,7 +11352,7 @@ it("RestJsonQueryBooleanStringCoercion_case11:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11391,7 +11389,7 @@ it("RestJsonQueryBooleanStringCoercion_case12:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11428,7 +11426,7 @@ it("RestJsonQueryBooleanStringCoercion_case13:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11465,7 +11463,7 @@ it("RestJsonQueryBooleanStringCoercion_case14:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case15:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11502,7 +11500,7 @@ it("RestJsonQueryBooleanStringCoercion_case15:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case16:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11539,7 +11537,7 @@ it("RestJsonQueryBooleanStringCoercion_case16:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case17:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11576,7 +11574,7 @@ it("RestJsonQueryBooleanStringCoercion_case17:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case18:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11613,7 +11611,7 @@ it("RestJsonQueryBooleanStringCoercion_case18:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case19:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11650,7 +11648,7 @@ it("RestJsonQueryBooleanStringCoercion_case19:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case20:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11687,7 +11685,7 @@ it("RestJsonQueryBooleanStringCoercion_case20:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonQueryBooleanStringCoercion_case21:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11724,7 +11722,7 @@ it("RestJsonQueryBooleanStringCoercion_case21:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11761,7 +11759,7 @@ it("RestJsonHeaderBooleanStringCoercion_case0:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11798,7 +11796,7 @@ it("RestJsonHeaderBooleanStringCoercion_case1:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11835,7 +11833,7 @@ it("RestJsonHeaderBooleanStringCoercion_case2:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11872,7 +11870,7 @@ it("RestJsonHeaderBooleanStringCoercion_case3:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11909,7 +11907,7 @@ it("RestJsonHeaderBooleanStringCoercion_case4:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11946,7 +11944,7 @@ it("RestJsonHeaderBooleanStringCoercion_case5:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -11983,7 +11981,7 @@ it("RestJsonHeaderBooleanStringCoercion_case6:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12020,7 +12018,7 @@ it("RestJsonHeaderBooleanStringCoercion_case7:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12057,7 +12055,7 @@ it("RestJsonHeaderBooleanStringCoercion_case8:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12094,7 +12092,7 @@ it("RestJsonHeaderBooleanStringCoercion_case9:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12131,7 +12129,7 @@ it("RestJsonHeaderBooleanStringCoercion_case10:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12168,7 +12166,7 @@ it("RestJsonHeaderBooleanStringCoercion_case11:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12205,7 +12203,7 @@ it("RestJsonHeaderBooleanStringCoercion_case12:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12242,7 +12240,7 @@ it("RestJsonHeaderBooleanStringCoercion_case13:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12279,7 +12277,7 @@ it("RestJsonHeaderBooleanStringCoercion_case14:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case15:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12316,7 +12314,7 @@ it("RestJsonHeaderBooleanStringCoercion_case15:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case16:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12353,7 +12351,7 @@ it("RestJsonHeaderBooleanStringCoercion_case16:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case17:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12390,7 +12388,7 @@ it("RestJsonHeaderBooleanStringCoercion_case17:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case18:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12427,7 +12425,7 @@ it("RestJsonHeaderBooleanStringCoercion_case18:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case19:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12464,7 +12462,7 @@ it("RestJsonHeaderBooleanStringCoercion_case19:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case20:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12501,7 +12499,7 @@ it("RestJsonHeaderBooleanStringCoercion_case20:MalformedRequest", async () => { * Attempted string coercion should result in SerializationException */ it("RestJsonHeaderBooleanStringCoercion_case21:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12538,7 +12536,7 @@ it("RestJsonHeaderBooleanStringCoercion_case21:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyByteUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12576,7 +12574,7 @@ it("RestJsonBodyByteUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyByteUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12614,7 +12612,7 @@ it("RestJsonBodyByteUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyByteUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12652,7 +12650,7 @@ it("RestJsonBodyByteUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyByteUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12690,7 +12688,7 @@ it("RestJsonBodyByteUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyByteUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12728,7 +12726,7 @@ it("RestJsonBodyByteUnderflowOverflow_case4:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathByteUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12763,7 +12761,7 @@ it("RestJsonPathByteUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathByteUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12798,7 +12796,7 @@ it("RestJsonPathByteUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathByteUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12833,7 +12831,7 @@ it("RestJsonPathByteUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathByteUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12868,7 +12866,7 @@ it("RestJsonPathByteUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathByteUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12903,7 +12901,7 @@ it("RestJsonPathByteUnderflowOverflow_case4:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryByteUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12940,7 +12938,7 @@ it("RestJsonQueryByteUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryByteUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -12977,7 +12975,7 @@ it("RestJsonQueryByteUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryByteUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13014,7 +13012,7 @@ it("RestJsonQueryByteUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryByteUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13051,7 +13049,7 @@ it("RestJsonQueryByteUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryByteUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13088,7 +13086,7 @@ it("RestJsonQueryByteUnderflowOverflow_case4:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderByteUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13125,7 +13123,7 @@ it("RestJsonHeaderByteUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderByteUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13162,7 +13160,7 @@ it("RestJsonHeaderByteUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderByteUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13199,7 +13197,7 @@ it("RestJsonHeaderByteUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderByteUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13236,7 +13234,7 @@ it("RestJsonHeaderByteUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderByteUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13273,7 +13271,7 @@ it("RestJsonHeaderByteUnderflowOverflow_case4:MalformedRequest", async () => { * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13311,7 +13309,7 @@ it("RestJsonBodyByteMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13349,7 +13347,7 @@ it("RestJsonBodyByteMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13387,7 +13385,7 @@ it("RestJsonBodyByteMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13425,7 +13423,7 @@ it("RestJsonBodyByteMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13463,7 +13461,7 @@ it("RestJsonBodyByteMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13501,7 +13499,7 @@ it("RestJsonBodyByteMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13539,7 +13537,7 @@ it("RestJsonBodyByteMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13577,7 +13575,7 @@ it("RestJsonBodyByteMalformedValueRejected_case7:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13615,7 +13613,7 @@ it("RestJsonBodyByteMalformedValueRejected_case8:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13653,7 +13651,7 @@ it("RestJsonBodyByteMalformedValueRejected_case9:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyByteMalformedValueRejected_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13691,7 +13689,7 @@ it("RestJsonBodyByteMalformedValueRejected_case10:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathByteMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13726,7 +13724,7 @@ it("RestJsonPathByteMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathByteMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13761,7 +13759,7 @@ it("RestJsonPathByteMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathByteMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13796,7 +13794,7 @@ it("RestJsonPathByteMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathByteMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13831,7 +13829,7 @@ it("RestJsonPathByteMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathByteMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13866,7 +13864,7 @@ it("RestJsonPathByteMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathByteMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13901,7 +13899,7 @@ it("RestJsonPathByteMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathByteMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13936,7 +13934,7 @@ it("RestJsonPathByteMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryByteMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -13973,7 +13971,7 @@ it("RestJsonQueryByteMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryByteMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14010,7 +14008,7 @@ it("RestJsonQueryByteMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryByteMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14047,7 +14045,7 @@ it("RestJsonQueryByteMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryByteMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14084,7 +14082,7 @@ it("RestJsonQueryByteMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryByteMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14121,7 +14119,7 @@ it("RestJsonQueryByteMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryByteMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14158,7 +14156,7 @@ it("RestJsonQueryByteMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryByteMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14195,7 +14193,7 @@ it("RestJsonQueryByteMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in headers should be rejected */ it("RestJsonHeaderByteMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14232,7 +14230,7 @@ it("RestJsonHeaderByteMalformedValueRejected_case0:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderByteMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14269,7 +14267,7 @@ it("RestJsonHeaderByteMalformedValueRejected_case1:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderByteMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14306,7 +14304,7 @@ it("RestJsonHeaderByteMalformedValueRejected_case2:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderByteMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14343,7 +14341,7 @@ it("RestJsonHeaderByteMalformedValueRejected_case3:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderByteMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14380,7 +14378,7 @@ it("RestJsonHeaderByteMalformedValueRejected_case4:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderByteMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14417,7 +14415,7 @@ it("RestJsonHeaderByteMalformedValueRejected_case5:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderByteMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14454,7 +14452,7 @@ it("RestJsonHeaderByteMalformedValueRejected_case6:MalformedRequest", async () = * When there is modeled input, the content type must be application/json */ it("RestJsonWithBodyExpectsApplicationJsonContentType:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14492,7 +14490,7 @@ it("RestJsonWithBodyExpectsApplicationJsonContentType:MalformedRequest", async ( * When there is modeled input, the content type must be application/json */ it.skip("RestJsonWithBodyExpectsApplicationJsonContentTypeNoHeaders:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14528,7 +14526,7 @@ it.skip("RestJsonWithBodyExpectsApplicationJsonContentTypeNoHeaders:MalformedReq * When there is no modeled input, content type must not be set and the body must be empty. */ it("RestJsonWithoutBodyExpectsEmptyContentType:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14566,7 +14564,7 @@ it("RestJsonWithoutBodyExpectsEmptyContentType:MalformedRequest", async () => { * When there is a payload with a mediaType trait, the content type must match. */ it("RestJsonWithPayloadExpectsModeledContentType:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14605,7 +14603,7 @@ it("RestJsonWithPayloadExpectsModeledContentType:MalformedRequest", async () => * implied content type of the shape. */ it("RestJsonWithPayloadExpectsImpliedContentType:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14643,7 +14641,7 @@ it("RestJsonWithPayloadExpectsImpliedContentType:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyDoubleMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14681,7 +14679,7 @@ it("RestJsonBodyDoubleMalformedValueRejected_case0:MalformedRequest", async () = * Malformed values in the body should be rejected */ it("RestJsonBodyDoubleMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14719,7 +14717,7 @@ it("RestJsonBodyDoubleMalformedValueRejected_case1:MalformedRequest", async () = * Malformed values in the body should be rejected */ it("RestJsonBodyDoubleMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14757,7 +14755,7 @@ it("RestJsonBodyDoubleMalformedValueRejected_case2:MalformedRequest", async () = * Malformed values in the body should be rejected */ it("RestJsonBodyDoubleMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14795,7 +14793,7 @@ it("RestJsonBodyDoubleMalformedValueRejected_case3:MalformedRequest", async () = * Malformed values in the body should be rejected */ it("RestJsonBodyDoubleMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14833,7 +14831,7 @@ it("RestJsonBodyDoubleMalformedValueRejected_case4:MalformedRequest", async () = * Malformed values in the body should be rejected */ it("RestJsonBodyDoubleMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14871,7 +14869,7 @@ it("RestJsonBodyDoubleMalformedValueRejected_case5:MalformedRequest", async () = * Malformed values in the body should be rejected */ it("RestJsonBodyDoubleMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14909,7 +14907,7 @@ it("RestJsonBodyDoubleMalformedValueRejected_case6:MalformedRequest", async () = * Malformed values in the path should be rejected */ it("RestJsonPathDoubleMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14944,7 +14942,7 @@ it("RestJsonPathDoubleMalformedValueRejected_case0:MalformedRequest", async () = * Malformed values in the path should be rejected */ it("RestJsonPathDoubleMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -14979,7 +14977,7 @@ it("RestJsonPathDoubleMalformedValueRejected_case1:MalformedRequest", async () = * Malformed values in the path should be rejected */ it("RestJsonPathDoubleMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15014,7 +15012,7 @@ it("RestJsonPathDoubleMalformedValueRejected_case2:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryDoubleMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15051,7 +15049,7 @@ it("RestJsonQueryDoubleMalformedValueRejected_case0:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryDoubleMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15088,7 +15086,7 @@ it("RestJsonQueryDoubleMalformedValueRejected_case1:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryDoubleMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15125,7 +15123,7 @@ it("RestJsonQueryDoubleMalformedValueRejected_case2:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderDoubleMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15162,7 +15160,7 @@ it("RestJsonHeaderDoubleMalformedValueRejected_case0:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderDoubleMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15199,7 +15197,7 @@ it("RestJsonHeaderDoubleMalformedValueRejected_case1:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderDoubleMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15236,7 +15234,7 @@ it("RestJsonHeaderDoubleMalformedValueRejected_case2:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyFloatMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15274,7 +15272,7 @@ it("RestJsonBodyFloatMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyFloatMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15312,7 +15310,7 @@ it("RestJsonBodyFloatMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyFloatMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15350,7 +15348,7 @@ it("RestJsonBodyFloatMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyFloatMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15388,7 +15386,7 @@ it("RestJsonBodyFloatMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyFloatMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15426,7 +15424,7 @@ it("RestJsonBodyFloatMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyFloatMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15464,7 +15462,7 @@ it("RestJsonBodyFloatMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyFloatMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15502,7 +15500,7 @@ it("RestJsonBodyFloatMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathFloatMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15537,7 +15535,7 @@ it("RestJsonPathFloatMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathFloatMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15572,7 +15570,7 @@ it("RestJsonPathFloatMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathFloatMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15607,7 +15605,7 @@ it("RestJsonPathFloatMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryFloatMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15644,7 +15642,7 @@ it("RestJsonQueryFloatMalformedValueRejected_case0:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryFloatMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15681,7 +15679,7 @@ it("RestJsonQueryFloatMalformedValueRejected_case1:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryFloatMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15718,7 +15716,7 @@ it("RestJsonQueryFloatMalformedValueRejected_case2:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderFloatMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15755,7 +15753,7 @@ it("RestJsonHeaderFloatMalformedValueRejected_case0:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderFloatMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15792,7 +15790,7 @@ it("RestJsonHeaderFloatMalformedValueRejected_case1:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderFloatMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15829,7 +15827,7 @@ it("RestJsonHeaderFloatMalformedValueRejected_case2:MalformedRequest", async () * Underflow or overflow should result in SerializationException */ it("RestJsonBodyIntegerUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15867,7 +15865,7 @@ it("RestJsonBodyIntegerUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyIntegerUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15905,7 +15903,7 @@ it("RestJsonBodyIntegerUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyIntegerUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15943,7 +15941,7 @@ it("RestJsonBodyIntegerUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathIntegerUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -15978,7 +15976,7 @@ it("RestJsonPathIntegerUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathIntegerUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16013,7 +16011,7 @@ it("RestJsonPathIntegerUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathIntegerUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16048,7 +16046,7 @@ it("RestJsonPathIntegerUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryIntegerUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16085,7 +16083,7 @@ it("RestJsonQueryIntegerUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryIntegerUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16122,7 +16120,7 @@ it("RestJsonQueryIntegerUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryIntegerUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16159,7 +16157,7 @@ it("RestJsonQueryIntegerUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderIntegerUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16196,7 +16194,7 @@ it("RestJsonHeaderIntegerUnderflowOverflow_case0:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderIntegerUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16233,7 +16231,7 @@ it("RestJsonHeaderIntegerUnderflowOverflow_case1:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderIntegerUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16270,7 +16268,7 @@ it("RestJsonHeaderIntegerUnderflowOverflow_case2:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16308,7 +16306,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case0:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16346,7 +16344,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case1:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16384,7 +16382,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case2:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16422,7 +16420,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case3:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16460,7 +16458,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case4:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16498,7 +16496,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case5:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16536,7 +16534,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case6:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16574,7 +16572,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case7:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16612,7 +16610,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case8:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16650,7 +16648,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case9:MalformedRequest", async () * Malformed values in the body should be rejected */ it("RestJsonBodyIntegerMalformedValueRejected_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16688,7 +16686,7 @@ it("RestJsonBodyIntegerMalformedValueRejected_case10:MalformedRequest", async () * Malformed values in the path should be rejected */ it("RestJsonPathIntegerMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16723,7 +16721,7 @@ it("RestJsonPathIntegerMalformedValueRejected_case0:MalformedRequest", async () * Malformed values in the path should be rejected */ it("RestJsonPathIntegerMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16758,7 +16756,7 @@ it("RestJsonPathIntegerMalformedValueRejected_case1:MalformedRequest", async () * Malformed values in the path should be rejected */ it("RestJsonPathIntegerMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16793,7 +16791,7 @@ it("RestJsonPathIntegerMalformedValueRejected_case2:MalformedRequest", async () * Malformed values in the path should be rejected */ it("RestJsonPathIntegerMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16828,7 +16826,7 @@ it("RestJsonPathIntegerMalformedValueRejected_case3:MalformedRequest", async () * Malformed values in the path should be rejected */ it("RestJsonPathIntegerMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16863,7 +16861,7 @@ it("RestJsonPathIntegerMalformedValueRejected_case4:MalformedRequest", async () * Malformed values in the path should be rejected */ it("RestJsonPathIntegerMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16898,7 +16896,7 @@ it("RestJsonPathIntegerMalformedValueRejected_case5:MalformedRequest", async () * Malformed values in the path should be rejected */ it("RestJsonPathIntegerMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16933,7 +16931,7 @@ it("RestJsonPathIntegerMalformedValueRejected_case6:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryIntegerMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -16970,7 +16968,7 @@ it("RestJsonQueryIntegerMalformedValueRejected_case0:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryIntegerMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17007,7 +17005,7 @@ it("RestJsonQueryIntegerMalformedValueRejected_case1:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryIntegerMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17044,7 +17042,7 @@ it("RestJsonQueryIntegerMalformedValueRejected_case2:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryIntegerMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17081,7 +17079,7 @@ it("RestJsonQueryIntegerMalformedValueRejected_case3:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryIntegerMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17118,7 +17116,7 @@ it("RestJsonQueryIntegerMalformedValueRejected_case4:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryIntegerMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17155,7 +17153,7 @@ it("RestJsonQueryIntegerMalformedValueRejected_case5:MalformedRequest", async () * Malformed values in query parameters should be rejected */ it("RestJsonQueryIntegerMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17192,7 +17190,7 @@ it("RestJsonQueryIntegerMalformedValueRejected_case6:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderIntegerMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17229,7 +17227,7 @@ it("RestJsonHeaderIntegerMalformedValueRejected_case0:MalformedRequest", async ( * Malformed values in headers should be rejected */ it("RestJsonHeaderIntegerMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17266,7 +17264,7 @@ it("RestJsonHeaderIntegerMalformedValueRejected_case1:MalformedRequest", async ( * Malformed values in headers should be rejected */ it("RestJsonHeaderIntegerMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17303,7 +17301,7 @@ it("RestJsonHeaderIntegerMalformedValueRejected_case2:MalformedRequest", async ( * Malformed values in headers should be rejected */ it("RestJsonHeaderIntegerMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17340,7 +17338,7 @@ it("RestJsonHeaderIntegerMalformedValueRejected_case3:MalformedRequest", async ( * Malformed values in headers should be rejected */ it("RestJsonHeaderIntegerMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17377,7 +17375,7 @@ it("RestJsonHeaderIntegerMalformedValueRejected_case4:MalformedRequest", async ( * Malformed values in headers should be rejected */ it("RestJsonHeaderIntegerMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17414,7 +17412,7 @@ it("RestJsonHeaderIntegerMalformedValueRejected_case5:MalformedRequest", async ( * Malformed values in headers should be rejected */ it("RestJsonHeaderIntegerMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17452,7 +17450,7 @@ it("RestJsonHeaderIntegerMalformedValueRejected_case6:MalformedRequest", async ( * SerializationException. */ it("RestJsonBodyMalformedListNullItem:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17491,7 +17489,7 @@ it("RestJsonBodyMalformedListNullItem:MalformedRequest", async () => { * a 400 SerializationException. */ it("RestJsonBodyMalformedListUnclosed:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17529,7 +17527,7 @@ it("RestJsonBodyMalformedListUnclosed:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it.skip("RestJsonBodyLongUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17567,7 +17565,7 @@ it.skip("RestJsonBodyLongUnderflowOverflow_case0:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonBodyLongUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17605,7 +17603,7 @@ it.skip("RestJsonBodyLongUnderflowOverflow_case1:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonBodyLongUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17643,7 +17641,7 @@ it.skip("RestJsonBodyLongUnderflowOverflow_case2:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonPathLongUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17678,7 +17676,7 @@ it.skip("RestJsonPathLongUnderflowOverflow_case0:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonPathLongUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17713,7 +17711,7 @@ it.skip("RestJsonPathLongUnderflowOverflow_case1:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonPathLongUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17748,7 +17746,7 @@ it.skip("RestJsonPathLongUnderflowOverflow_case2:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonQueryLongUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17785,7 +17783,7 @@ it.skip("RestJsonQueryLongUnderflowOverflow_case0:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonQueryLongUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17822,7 +17820,7 @@ it.skip("RestJsonQueryLongUnderflowOverflow_case1:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonQueryLongUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17859,7 +17857,7 @@ it.skip("RestJsonQueryLongUnderflowOverflow_case2:MalformedRequest", async () => * Underflow or overflow should result in SerializationException */ it.skip("RestJsonHeaderLongUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17896,7 +17894,7 @@ it.skip("RestJsonHeaderLongUnderflowOverflow_case0:MalformedRequest", async () = * Underflow or overflow should result in SerializationException */ it.skip("RestJsonHeaderLongUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17933,7 +17931,7 @@ it.skip("RestJsonHeaderLongUnderflowOverflow_case1:MalformedRequest", async () = * Underflow or overflow should result in SerializationException */ it.skip("RestJsonHeaderLongUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -17970,7 +17968,7 @@ it.skip("RestJsonHeaderLongUnderflowOverflow_case2:MalformedRequest", async () = * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18008,7 +18006,7 @@ it("RestJsonBodyLongMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18046,7 +18044,7 @@ it("RestJsonBodyLongMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18084,7 +18082,7 @@ it("RestJsonBodyLongMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18122,7 +18120,7 @@ it("RestJsonBodyLongMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18160,7 +18158,7 @@ it("RestJsonBodyLongMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18198,7 +18196,7 @@ it("RestJsonBodyLongMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18236,7 +18234,7 @@ it("RestJsonBodyLongMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18274,7 +18272,7 @@ it("RestJsonBodyLongMalformedValueRejected_case7:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18312,7 +18310,7 @@ it("RestJsonBodyLongMalformedValueRejected_case8:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18350,7 +18348,7 @@ it("RestJsonBodyLongMalformedValueRejected_case9:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyLongMalformedValueRejected_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18388,7 +18386,7 @@ it("RestJsonBodyLongMalformedValueRejected_case10:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathLongMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18423,7 +18421,7 @@ it("RestJsonPathLongMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathLongMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18458,7 +18456,7 @@ it("RestJsonPathLongMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathLongMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18493,7 +18491,7 @@ it("RestJsonPathLongMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathLongMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18528,7 +18526,7 @@ it("RestJsonPathLongMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathLongMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18563,7 +18561,7 @@ it("RestJsonPathLongMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathLongMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18598,7 +18596,7 @@ it("RestJsonPathLongMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathLongMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18633,7 +18631,7 @@ it("RestJsonPathLongMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryLongMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18670,7 +18668,7 @@ it("RestJsonQueryLongMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryLongMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18707,7 +18705,7 @@ it("RestJsonQueryLongMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryLongMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18744,7 +18742,7 @@ it("RestJsonQueryLongMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryLongMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18781,7 +18779,7 @@ it("RestJsonQueryLongMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryLongMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18818,7 +18816,7 @@ it("RestJsonQueryLongMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryLongMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18855,7 +18853,7 @@ it("RestJsonQueryLongMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryLongMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18892,7 +18890,7 @@ it("RestJsonQueryLongMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in headers should be rejected */ it("RestJsonHeaderLongMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18929,7 +18927,7 @@ it("RestJsonHeaderLongMalformedValueRejected_case0:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderLongMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -18966,7 +18964,7 @@ it("RestJsonHeaderLongMalformedValueRejected_case1:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderLongMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19003,7 +19001,7 @@ it("RestJsonHeaderLongMalformedValueRejected_case2:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderLongMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19040,7 +19038,7 @@ it("RestJsonHeaderLongMalformedValueRejected_case3:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderLongMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19077,7 +19075,7 @@ it("RestJsonHeaderLongMalformedValueRejected_case4:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderLongMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19114,7 +19112,7 @@ it("RestJsonHeaderLongMalformedValueRejected_case5:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderLongMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19152,7 +19150,7 @@ it("RestJsonHeaderLongMalformedValueRejected_case6:MalformedRequest", async () = * SerializationException. */ it("RestJsonBodyMalformedMapNullKey:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19191,7 +19189,7 @@ it("RestJsonBodyMalformedMapNullKey:MalformedRequest", async () => { * SerializationException. */ it.skip("RestJsonBodyMalformedMapNullValue:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19230,7 +19228,7 @@ it.skip("RestJsonBodyMalformedMapNullValue:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19269,7 +19267,7 @@ it("RestJsonInvalidJsonBody_case0:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19308,7 +19306,7 @@ it("RestJsonInvalidJsonBody_case1:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19347,7 +19345,7 @@ it("RestJsonInvalidJsonBody_case2:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19386,7 +19384,7 @@ it("RestJsonInvalidJsonBody_case3:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19425,7 +19423,7 @@ it("RestJsonInvalidJsonBody_case4:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19464,7 +19462,7 @@ it("RestJsonInvalidJsonBody_case5:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19503,7 +19501,7 @@ it("RestJsonInvalidJsonBody_case6:MalformedRequest", async () => { * SerializationException. */ it("RestJsonInvalidJsonBody_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19542,7 +19540,7 @@ it("RestJsonInvalidJsonBody_case7:MalformedRequest", async () => { * the response should be a 400 SerializationException. */ it("RestJsonTechnicallyValidJsonBody_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19581,7 +19579,7 @@ it("RestJsonTechnicallyValidJsonBody_case0:MalformedRequest", async () => { * the response should be a 400 SerializationException. */ it("RestJsonTechnicallyValidJsonBody_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19620,7 +19618,7 @@ it("RestJsonTechnicallyValidJsonBody_case1:MalformedRequest", async () => { * the response should be a 400 SerializationException. */ it("RestJsonTechnicallyValidJsonBody_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19658,7 +19656,7 @@ it("RestJsonTechnicallyValidJsonBody_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyShortUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19696,7 +19694,7 @@ it("RestJsonBodyShortUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyShortUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19734,7 +19732,7 @@ it("RestJsonBodyShortUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyShortUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19772,7 +19770,7 @@ it("RestJsonBodyShortUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyShortUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19810,7 +19808,7 @@ it("RestJsonBodyShortUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonBodyShortUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19848,7 +19846,7 @@ it("RestJsonBodyShortUnderflowOverflow_case4:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathShortUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19883,7 +19881,7 @@ it("RestJsonPathShortUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathShortUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19918,7 +19916,7 @@ it("RestJsonPathShortUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathShortUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19953,7 +19951,7 @@ it("RestJsonPathShortUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathShortUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -19988,7 +19986,7 @@ it("RestJsonPathShortUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonPathShortUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20023,7 +20021,7 @@ it("RestJsonPathShortUnderflowOverflow_case4:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryShortUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20060,7 +20058,7 @@ it("RestJsonQueryShortUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryShortUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20097,7 +20095,7 @@ it("RestJsonQueryShortUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryShortUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20134,7 +20132,7 @@ it("RestJsonQueryShortUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryShortUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20171,7 +20169,7 @@ it("RestJsonQueryShortUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonQueryShortUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20208,7 +20206,7 @@ it("RestJsonQueryShortUnderflowOverflow_case4:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderShortUnderflowOverflow_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20245,7 +20243,7 @@ it("RestJsonHeaderShortUnderflowOverflow_case0:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderShortUnderflowOverflow_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20282,7 +20280,7 @@ it("RestJsonHeaderShortUnderflowOverflow_case1:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderShortUnderflowOverflow_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20319,7 +20317,7 @@ it("RestJsonHeaderShortUnderflowOverflow_case2:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderShortUnderflowOverflow_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20356,7 +20354,7 @@ it("RestJsonHeaderShortUnderflowOverflow_case3:MalformedRequest", async () => { * Underflow or overflow should result in SerializationException */ it("RestJsonHeaderShortUnderflowOverflow_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20393,7 +20391,7 @@ it("RestJsonHeaderShortUnderflowOverflow_case4:MalformedRequest", async () => { * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20431,7 +20429,7 @@ it("RestJsonBodyShortMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20469,7 +20467,7 @@ it("RestJsonBodyShortMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20507,7 +20505,7 @@ it("RestJsonBodyShortMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20545,7 +20543,7 @@ it("RestJsonBodyShortMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20583,7 +20581,7 @@ it("RestJsonBodyShortMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20621,7 +20619,7 @@ it("RestJsonBodyShortMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20659,7 +20657,7 @@ it("RestJsonBodyShortMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20697,7 +20695,7 @@ it("RestJsonBodyShortMalformedValueRejected_case7:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20735,7 +20733,7 @@ it("RestJsonBodyShortMalformedValueRejected_case8:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20773,7 +20771,7 @@ it("RestJsonBodyShortMalformedValueRejected_case9:MalformedRequest", async () => * Malformed values in the body should be rejected */ it("RestJsonBodyShortMalformedValueRejected_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20811,7 +20809,7 @@ it("RestJsonBodyShortMalformedValueRejected_case10:MalformedRequest", async () = * Malformed values in the path should be rejected */ it("RestJsonPathShortMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20846,7 +20844,7 @@ it("RestJsonPathShortMalformedValueRejected_case0:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathShortMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20881,7 +20879,7 @@ it("RestJsonPathShortMalformedValueRejected_case1:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathShortMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20916,7 +20914,7 @@ it("RestJsonPathShortMalformedValueRejected_case2:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathShortMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20951,7 +20949,7 @@ it("RestJsonPathShortMalformedValueRejected_case3:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathShortMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -20986,7 +20984,7 @@ it("RestJsonPathShortMalformedValueRejected_case4:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathShortMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21021,7 +21019,7 @@ it("RestJsonPathShortMalformedValueRejected_case5:MalformedRequest", async () => * Malformed values in the path should be rejected */ it("RestJsonPathShortMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21056,7 +21054,7 @@ it("RestJsonPathShortMalformedValueRejected_case6:MalformedRequest", async () => * Malformed values in query parameters should be rejected */ it("RestJsonQueryShortMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21093,7 +21091,7 @@ it("RestJsonQueryShortMalformedValueRejected_case0:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryShortMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21130,7 +21128,7 @@ it("RestJsonQueryShortMalformedValueRejected_case1:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryShortMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21167,7 +21165,7 @@ it("RestJsonQueryShortMalformedValueRejected_case2:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryShortMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21204,7 +21202,7 @@ it("RestJsonQueryShortMalformedValueRejected_case3:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryShortMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21241,7 +21239,7 @@ it("RestJsonQueryShortMalformedValueRejected_case4:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryShortMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21278,7 +21276,7 @@ it("RestJsonQueryShortMalformedValueRejected_case5:MalformedRequest", async () = * Malformed values in query parameters should be rejected */ it("RestJsonQueryShortMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21315,7 +21313,7 @@ it("RestJsonQueryShortMalformedValueRejected_case6:MalformedRequest", async () = * Malformed values in headers should be rejected */ it("RestJsonHeaderShortMalformedValueRejected_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21352,7 +21350,7 @@ it("RestJsonHeaderShortMalformedValueRejected_case0:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderShortMalformedValueRejected_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21389,7 +21387,7 @@ it("RestJsonHeaderShortMalformedValueRejected_case1:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderShortMalformedValueRejected_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21426,7 +21424,7 @@ it("RestJsonHeaderShortMalformedValueRejected_case2:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderShortMalformedValueRejected_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21463,7 +21461,7 @@ it("RestJsonHeaderShortMalformedValueRejected_case3:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderShortMalformedValueRejected_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21500,7 +21498,7 @@ it("RestJsonHeaderShortMalformedValueRejected_case4:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderShortMalformedValueRejected_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21537,7 +21535,7 @@ it("RestJsonHeaderShortMalformedValueRejected_case5:MalformedRequest", async () * Malformed values in headers should be rejected */ it("RestJsonHeaderShortMalformedValueRejected_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21576,7 +21574,7 @@ it("RestJsonHeaderShortMalformedValueRejected_case6:MalformedRequest", async () * valid base64 out of hand. */ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21616,7 +21614,7 @@ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case0:MalformedRequest", * valid base64 out of hand. */ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21656,7 +21654,7 @@ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case1:MalformedRequest", * valid base64 out of hand. */ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21696,7 +21694,7 @@ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case2:MalformedRequest", * valid base64 out of hand. */ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21735,7 +21733,7 @@ it("RestJsonHeaderMalformedStringInvalidBase64MediaType_case3:MalformedRequest", * 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21774,7 +21772,7 @@ it("RestJsonBodyTimestampDateTimeRejectsHttpDate_case0:MalformedRequest", async * 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21813,7 +21811,7 @@ it("RestJsonBodyTimestampDateTimeRejectsEpochSeconds_case0:MalformedRequest", as * 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21852,7 +21850,7 @@ it("RestJsonBodyTimestampDateTimeRejectsEpochSeconds_case1:MalformedRequest", as * 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsUTCOffsets_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21891,7 +21889,7 @@ it("RestJsonBodyTimestampDateTimeRejectsUTCOffsets_case0:MalformedRequest", asyn * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21930,7 +21928,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case0:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -21969,7 +21967,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case1:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22008,7 +22006,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case2:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22047,7 +22045,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case3:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22086,7 +22084,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case4:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22125,7 +22123,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case5:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22164,7 +22162,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case6:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22203,7 +22201,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case7:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22242,7 +22240,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case8:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22281,7 +22279,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case9:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22320,7 +22318,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case10:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22359,7 +22357,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case11:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22398,7 +22396,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case12:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22437,7 +22435,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case13:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22476,7 +22474,7 @@ it("RestJsonBodyTimestampDateTimeRejectsDifferent8601Formats_case14:MalformedReq * 400 SerializationException */ it.skip("RestJsonBodyTimestampDefaultRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22515,7 +22513,7 @@ it.skip("RestJsonBodyTimestampDefaultRejectsDateTime_case0:MalformedRequest", as * 400 SerializationException */ it.skip("RestJsonBodyTimestampDefaultRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22554,7 +22552,7 @@ it.skip("RestJsonBodyTimestampDefaultRejectsDateTime_case1:MalformedRequest", as * 400 SerializationException */ it.skip("RestJsonBodyTimestampDefaultRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22593,7 +22591,7 @@ it.skip("RestJsonBodyTimestampDefaultRejectsDateTime_case2:MalformedRequest", as * 400 SerializationException */ it.skip("RestJsonBodyTimestampDefaultRejectsStringifiedEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22632,7 +22630,7 @@ it.skip("RestJsonBodyTimestampDefaultRejectsStringifiedEpochSeconds_case0:Malfor * 400 SerializationException */ it.skip("RestJsonBodyTimestampDefaultRejectsStringifiedEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22670,7 +22668,7 @@ it.skip("RestJsonBodyTimestampDefaultRejectsStringifiedEpochSeconds_case1:Malfor * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22708,7 +22706,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case0:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22746,7 +22744,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case1:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22784,7 +22782,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case2:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22822,7 +22820,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case3:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22860,7 +22858,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case4:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22898,7 +22896,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case5:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22936,7 +22934,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case6:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -22974,7 +22972,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case7:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23012,7 +23010,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case8:MalformedRequ * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23051,7 +23049,7 @@ it("RestJsonBodyTimestampDefaultRejectsMalformedEpochSeconds_case9:MalformedRequ * 400 SerializationException */ it("RestJsonBodyTimestampDefaultRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23090,7 +23088,7 @@ it("RestJsonBodyTimestampDefaultRejectsHttpDate_case0:MalformedRequest", async ( * 400 SerializationException */ it("RestJsonBodyTimestampHttpDateRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23129,7 +23127,7 @@ it("RestJsonBodyTimestampHttpDateRejectsDateTime_case0:MalformedRequest", async * 400 SerializationException */ it("RestJsonBodyTimestampHttpDateRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23168,7 +23166,7 @@ it("RestJsonBodyTimestampHttpDateRejectsDateTime_case1:MalformedRequest", async * 400 SerializationException */ it("RestJsonBodyTimestampHttpDateRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23207,7 +23205,7 @@ it("RestJsonBodyTimestampHttpDateRejectsDateTime_case2:MalformedRequest", async * 400 SerializationException */ it("RestJsonBodyTimestampHttpDateRejectsEpoch_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23246,7 +23244,7 @@ it("RestJsonBodyTimestampHttpDateRejectsEpoch_case0:MalformedRequest", async () * 400 SerializationException */ it("RestJsonBodyTimestampHttpDateRejectsEpoch_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23285,7 +23283,7 @@ it("RestJsonBodyTimestampHttpDateRejectsEpoch_case1:MalformedRequest", async () * 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23323,7 +23321,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsHttpDate_case0:MalformedRequest", asyn * 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23361,7 +23359,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsEpochSeconds_case0:MalformedRequest", * 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23399,7 +23397,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsEpochSeconds_case1:MalformedRequest", * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23437,7 +23435,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case0:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23475,7 +23473,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case1:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23513,7 +23511,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case2:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23551,7 +23549,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case3:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23589,7 +23587,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case4:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23627,7 +23625,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case5:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23665,7 +23663,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case6:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23703,7 +23701,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case7:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23741,7 +23739,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case8:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23779,7 +23777,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case9:MalformedRe * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23817,7 +23815,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case10:MalformedR * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23855,7 +23853,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case11:MalformedR * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23893,7 +23891,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case12:MalformedR * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23931,7 +23929,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case13:MalformedR * are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -23969,7 +23967,7 @@ it("RestJsonHeaderTimestampDateTimeRejectsDifferent8601Formats_case14:MalformedR * 400 SerializationException */ it("RestJsonHeaderTimestampDefaultRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24007,7 +24005,7 @@ it("RestJsonHeaderTimestampDefaultRejectsDateTime_case0:MalformedRequest", async * 400 SerializationException */ it("RestJsonHeaderTimestampDefaultRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24045,7 +24043,7 @@ it("RestJsonHeaderTimestampDefaultRejectsDateTime_case1:MalformedRequest", async * 400 SerializationException */ it("RestJsonHeaderTimestampDefaultRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24083,7 +24081,7 @@ it("RestJsonHeaderTimestampDefaultRejectsDateTime_case2:MalformedRequest", async * 400 SerializationException */ it("RestJsonHeaderTimestampDefaultRejectsEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24121,7 +24119,7 @@ it("RestJsonHeaderTimestampDefaultRejectsEpochSeconds_case0:MalformedRequest", a * 400 SerializationException */ it("RestJsonHeaderTimestampDefaultRejectsEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24159,7 +24157,7 @@ it("RestJsonHeaderTimestampDefaultRejectsEpochSeconds_case1:MalformedRequest", a * 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24197,7 +24195,7 @@ it("RestJsonHeaderTimestampEpochRejectsDateTime_case0:MalformedRequest", async ( * 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24235,7 +24233,7 @@ it("RestJsonHeaderTimestampEpochRejectsDateTime_case1:MalformedRequest", async ( * 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24273,7 +24271,7 @@ it("RestJsonHeaderTimestampEpochRejectsDateTime_case2:MalformedRequest", async ( * 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24310,7 +24308,7 @@ it("RestJsonHeaderTimestampEpochRejectsHttpDate_case0:MalformedRequest", async ( * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24347,7 +24345,7 @@ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case0:MalformedRequest", * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24384,7 +24382,7 @@ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case1:MalformedRequest", * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24421,7 +24419,7 @@ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case2:MalformedRequest", * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24458,7 +24456,7 @@ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case3:MalformedRequest", * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24495,7 +24493,7 @@ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case4:MalformedRequest", * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24532,7 +24530,7 @@ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case5:MalformedRequest", * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24570,7 +24568,7 @@ it("RestJsonHeaderTimestampEpochRejectsMalformedValues_case6:MalformedRequest", * 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24606,7 +24604,7 @@ it("RestJsonPathTimestampDefaultRejectsHttpDate_case0:MalformedRequest", async ( * 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsHttpDate_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24642,7 +24640,7 @@ it("RestJsonPathTimestampDefaultRejectsHttpDate_case1:MalformedRequest", async ( * 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24678,7 +24676,7 @@ it("RestJsonPathTimestampDefaultRejectsEpochSeconds_case0:MalformedRequest", asy * 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24714,7 +24712,7 @@ it("RestJsonPathTimestampDefaultRejectsEpochSeconds_case1:MalformedRequest", asy * 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsUTCOffsets:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24750,7 +24748,7 @@ it("RestJsonPathTimestampDefaultRejectsUTCOffsets:MalformedRequest", async () => * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24786,7 +24784,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case0:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24822,7 +24820,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case1:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24858,7 +24856,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case2:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24894,7 +24892,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case3:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24930,7 +24928,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case4:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -24966,7 +24964,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case5:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25002,7 +25000,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case6:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25038,7 +25036,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case7:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25074,7 +25072,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case8:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25110,7 +25108,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case9:MalformedReque * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25146,7 +25144,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case10:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25182,7 +25180,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case11:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25218,7 +25216,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case12:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25254,7 +25252,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case13:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25290,7 +25288,7 @@ it("RestJsonPathTimestampDefaultRejectsDifferent8601Formats_case14:MalformedRequ * 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25326,7 +25324,7 @@ it("RestJsonPathTimestampEpochRejectsDateTime_case0:MalformedRequest", async () * 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25362,7 +25360,7 @@ it("RestJsonPathTimestampEpochRejectsDateTime_case1:MalformedRequest", async () * 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25398,7 +25396,7 @@ it("RestJsonPathTimestampEpochRejectsDateTime_case2:MalformedRequest", async () * 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25434,7 +25432,7 @@ it("RestJsonPathTimestampEpochRejectsHttpDate_case0:MalformedRequest", async () * 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsHttpDate_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25469,7 +25467,7 @@ it("RestJsonPathTimestampEpochRejectsHttpDate_case1:MalformedRequest", async () * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsMalformedValues_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25504,7 +25502,7 @@ it("RestJsonPathTimestampEpochRejectsMalformedValues_case0:MalformedRequest", as * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsMalformedValues_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25539,7 +25537,7 @@ it("RestJsonPathTimestampEpochRejectsMalformedValues_case1:MalformedRequest", as * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsMalformedValues_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25574,7 +25572,7 @@ it("RestJsonPathTimestampEpochRejectsMalformedValues_case2:MalformedRequest", as * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsMalformedValues_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25609,7 +25607,7 @@ it("RestJsonPathTimestampEpochRejectsMalformedValues_case3:MalformedRequest", as * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsMalformedValues_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25644,7 +25642,7 @@ it("RestJsonPathTimestampEpochRejectsMalformedValues_case4:MalformedRequest", as * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsMalformedValues_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25679,7 +25677,7 @@ it("RestJsonPathTimestampEpochRejectsMalformedValues_case5:MalformedRequest", as * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonPathTimestampEpochRejectsMalformedValues_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25715,7 +25713,7 @@ it("RestJsonPathTimestampEpochRejectsMalformedValues_case6:MalformedRequest", as * 400 SerializationException */ it("RestJsonPathTimestampHttpDateRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25751,7 +25749,7 @@ it("RestJsonPathTimestampHttpDateRejectsDateTime_case0:MalformedRequest", async * 400 SerializationException */ it("RestJsonPathTimestampHttpDateRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25787,7 +25785,7 @@ it("RestJsonPathTimestampHttpDateRejectsDateTime_case1:MalformedRequest", async * 400 SerializationException */ it("RestJsonPathTimestampHttpDateRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25823,7 +25821,7 @@ it("RestJsonPathTimestampHttpDateRejectsDateTime_case2:MalformedRequest", async * 400 SerializationException */ it("RestJsonPathTimestampHttpDateRejectsEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25859,7 +25857,7 @@ it("RestJsonPathTimestampHttpDateRejectsEpochSeconds_case0:MalformedRequest", as * 400 SerializationException */ it("RestJsonPathTimestampHttpDateRejectsEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25895,7 +25893,7 @@ it("RestJsonPathTimestampHttpDateRejectsEpochSeconds_case1:MalformedRequest", as * 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25933,7 +25931,7 @@ it("RestJsonQueryTimestampDefaultRejectsHttpDate_case0:MalformedRequest", async * 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsHttpDate_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -25971,7 +25969,7 @@ it("RestJsonQueryTimestampDefaultRejectsHttpDate_case1:MalformedRequest", async * 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26009,7 +26007,7 @@ it("RestJsonQueryTimestampDefaultRejectsEpochSeconds_case0:MalformedRequest", as * 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26047,7 +26045,7 @@ it("RestJsonQueryTimestampDefaultRejectsEpochSeconds_case1:MalformedRequest", as * 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsUTCOffsets:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26085,7 +26083,7 @@ it("RestJsonQueryTimestampDefaultRejectsUTCOffsets:MalformedRequest", async () = * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26123,7 +26121,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case0:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26161,7 +26159,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case1:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26199,7 +26197,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case2:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26237,7 +26235,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case3:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26275,7 +26273,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case4:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26313,7 +26311,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case5:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26351,7 +26349,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case6:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case7:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26389,7 +26387,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case7:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case8:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26427,7 +26425,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case8:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case9:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26465,7 +26463,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case9:MalformedRequ * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case10:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26503,7 +26501,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case10:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case11:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26541,7 +26539,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case11:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case12:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26579,7 +26577,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case12:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case13:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26617,7 +26615,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case13:MalformedReq * are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case14:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26655,7 +26653,7 @@ it("RestJsonQueryTimestampDefaultRejectsDifferent8601Formats_case14:MalformedReq * 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26693,7 +26691,7 @@ it("RestJsonQueryTimestampEpochRejectsDateTime_case0:MalformedRequest", async () * 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26731,7 +26729,7 @@ it("RestJsonQueryTimestampEpochRejectsDateTime_case1:MalformedRequest", async () * 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26769,7 +26767,7 @@ it("RestJsonQueryTimestampEpochRejectsDateTime_case2:MalformedRequest", async () * 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsHttpDate_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26807,7 +26805,7 @@ it("RestJsonQueryTimestampEpochRejectsHttpDate_case0:MalformedRequest", async () * 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsHttpDate_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26844,7 +26842,7 @@ it("RestJsonQueryTimestampEpochRejectsHttpDate_case1:MalformedRequest", async () * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26881,7 +26879,7 @@ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case0:MalformedRequest", a * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26918,7 +26916,7 @@ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case1:MalformedRequest", a * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26955,7 +26953,7 @@ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case2:MalformedRequest", a * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case3:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -26992,7 +26990,7 @@ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case3:MalformedRequest", a * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case4:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27029,7 +27027,7 @@ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case4:MalformedRequest", a * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case5:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27066,7 +27064,7 @@ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case5:MalformedRequest", a * Invalid values for epoch seconds are rejected with a 400 SerializationException */ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case6:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27104,7 +27102,7 @@ it("RestJsonQueryTimestampEpochRejectsMalformedValues_case6:MalformedRequest", a * 400 SerializationException */ it("RestJsonQueryTimestampHttpDateRejectsDateTime_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27142,7 +27140,7 @@ it("RestJsonQueryTimestampHttpDateRejectsDateTime_case0:MalformedRequest", async * 400 SerializationException */ it("RestJsonQueryTimestampHttpDateRejectsDateTime_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27180,7 +27178,7 @@ it("RestJsonQueryTimestampHttpDateRejectsDateTime_case1:MalformedRequest", async * 400 SerializationException */ it("RestJsonQueryTimestampHttpDateRejectsDateTime_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27218,7 +27216,7 @@ it("RestJsonQueryTimestampHttpDateRejectsDateTime_case2:MalformedRequest", async * 400 SerializationException */ it("RestJsonQueryTimestampHttpDateRejectsEpochSeconds_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27256,7 +27254,7 @@ it("RestJsonQueryTimestampHttpDateRejectsEpochSeconds_case0:MalformedRequest", a * 400 SerializationException */ it("RestJsonQueryTimestampHttpDateRejectsEpochSeconds_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27294,7 +27292,7 @@ it("RestJsonQueryTimestampHttpDateRejectsEpochSeconds_case1:MalformedRequest", a * SerializationException. */ it("RestJsonMalformedUnionMultipleFieldsSet:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27333,7 +27331,7 @@ it("RestJsonMalformedUnionMultipleFieldsSet:MalformedRequest", async () => { * the response should be a 400 SerializationException. */ it("RestJsonMalformedUnionKnownAndUnknownFieldsSet:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27372,7 +27370,7 @@ it("RestJsonMalformedUnionKnownAndUnknownFieldsSet:MalformedRequest", async () = * SerializationException. */ it("RestJsonMalformedUnionNoFieldsSet:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27411,7 +27409,7 @@ it("RestJsonMalformedUnionNoFieldsSet:MalformedRequest", async () => { * response should be a 400 SerializationException. */ it("RestJsonMalformedUnionEmptyObjectNoFieldsSet:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27450,7 +27448,7 @@ it("RestJsonMalformedUnionEmptyObjectNoFieldsSet:MalformedRequest", async () => * SerializationException. */ it("RestJsonMalformedUnionValueIsArray:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27489,7 +27487,7 @@ it("RestJsonMalformedUnionValueIsArray:MalformedRequest", async () => { * SerializationException. */ it.skip("RestJsonMalformedUnionUnknownMember:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -27527,7 +27525,7 @@ it.skip("RestJsonMalformedUnionUnknownMember:MalformedRequest", async () => { * Headers that target strings with a mediaType are base64 encoded */ it("MediaTypeHeaderInputBase64:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { MediaTypeHeader: testFunction as MediaTypeHeader<{}>, @@ -27623,7 +27621,7 @@ it("MediaTypeHeaderOutputBase64:ServerResponse", async () => { * altogether. */ it("RestJsonNoInputAndNoOutput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { NoInputAndNoOutput: testFunction as NoInputAndNoOutput<{}>, @@ -27656,7 +27654,7 @@ it("RestJsonNoInputAndNoOutput:ServerRequest", async () => { * default content-type. */ it("RestJsonNoInputAllowsAccept:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { NoInputAndNoOutput: testFunction as NoInputAndNoOutput<{}>, @@ -27740,7 +27738,7 @@ it("RestJsonNoInputAndNoOutput:ServerResponse", async () => { * altogether. */ it("RestJsonNoInputAndOutput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { NoInputAndOutput: testFunction as NoInputAndOutput<{}>, @@ -27773,7 +27771,7 @@ it("RestJsonNoInputAndOutput:ServerRequest", async () => { * default content-type. */ it("RestJsonNoInputAndOutputAllowsAccept:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { NoInputAndOutput: testFunction as NoInputAndOutput<{}>, @@ -27915,7 +27913,7 @@ it.skip("RestJsonNullAndEmptyHeaders:ServerResponse", async () => { * Serializes empty query strings */ it("RestJsonSerializesEmptyQueryValue:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { OmitsNullSerializesEmptyString: testFunction as OmitsNullSerializesEmptyString<{}>, @@ -27959,7 +27957,7 @@ it("RestJsonSerializesEmptyQueryValue:ServerRequest", async () => { * Servers accept static query params as empty strings. */ it("RestJsonServersAcceptStaticQueryParamAsEmptyString:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { OmitsNullSerializesEmptyString: testFunction as OmitsNullSerializesEmptyString<{}>, @@ -28003,7 +28001,7 @@ it("RestJsonServersAcceptStaticQueryParamAsEmptyString:ServerRequest", async () * Server populates default values when missing in request body. */ it.skip("RestJsonServerPopulatesDefaultsWhenMissingInRequestBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { OperationWithDefaults: testFunction as OperationWithDefaults<{}>, @@ -28159,7 +28157,7 @@ it.skip("RestJsonServerPopulatesDefaultsInResponseWhenMissingInParams:ServerResp * Server populates nested default values when missing in request body. */ it.skip("RestJsonServerPopulatesNestedDefaultsWhenMissingInRequestBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { OperationWithNestedStructure: testFunction as OperationWithNestedStructure<{}>, @@ -28371,7 +28369,7 @@ it.skip("RestJsonServerPopulatesNestedDefaultValuesWhenMissingInInResponseParams * Unit types in unions are serialized like normal structures in requests. */ it("RestJsonInputUnionWithUnitMember:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { PostPlayerAction: testFunction as PostPlayerAction<{}>, @@ -28479,7 +28477,7 @@ it("RestJsonOutputUnionWithUnitMember:ServerResponse", async () => { * Tests that jsonName works with union members. */ it("PostUnionWithJsonNameRequest1:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { PostUnionWithJsonName: testFunction as PostUnionWithJsonName<{}>, @@ -28525,7 +28523,7 @@ it("PostUnionWithJsonNameRequest1:ServerRequest", async () => { * Tests that jsonName works with union members. */ it("PostUnionWithJsonNameRequest2:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { PostUnionWithJsonName: testFunction as PostUnionWithJsonName<{}>, @@ -28571,7 +28569,7 @@ it("PostUnionWithJsonNameRequest2:ServerRequest", async () => { * Tests that jsonName works with union members. */ it("PostUnionWithJsonNameRequest3:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { PostUnionWithJsonName: testFunction as PostUnionWithJsonName<{}>, @@ -28803,7 +28801,7 @@ it("PostUnionWithJsonNameResponse3:ServerResponse", async () => { * Compression algorithm encoding is appended to the Content-Encoding header. */ it.skip("SDKAppliedContentEncoding_restJson1:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { PutWithContentEncoding: testFunction as PutWithContentEncoding<{}>, @@ -28849,7 +28847,7 @@ it.skip("SDKAppliedContentEncoding_restJson1:ServerRequest", async () => { * */ it.skip("SDKAppendedGzipAfterProvidedEncoding_restJson1:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { PutWithContentEncoding: testFunction as PutWithContentEncoding<{}>, @@ -28893,7 +28891,7 @@ it.skip("SDKAppendedGzipAfterProvidedEncoding_restJson1:ServerRequest", async () * Servers put all query params in map */ it("RestJsonServersQueryParamsStringListMap:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { QueryParamsAsStringListMap: testFunction as QueryParamsAsStringListMap<{}>, @@ -28942,7 +28940,7 @@ it("RestJsonServersQueryParamsStringListMap:ServerRequest", async () => { * Servers put all query params in map */ it("RestJsonServersPutAllQueryParamsInMap:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { QueryPrecedence: testFunction as QueryPrecedence<{}>, @@ -28991,7 +28989,7 @@ it("RestJsonServersPutAllQueryParamsInMap:ServerRequest", async () => { * Serializes recursive structures */ it("RestJsonRecursiveShapes:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { RecursiveShapes: testFunction as RecursiveShapes<{}>, @@ -29128,7 +29126,7 @@ it("RestJsonRecursiveShapes:ServerResponse", async () => { * Serializes simple scalar properties */ it("RestJsonSimpleScalarProperties:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SimpleScalarProperties: testFunction as SimpleScalarProperties<{}>, @@ -29184,7 +29182,7 @@ it("RestJsonSimpleScalarProperties:ServerRequest", async () => { * Rest Json should not deserialize null structure values */ it("RestJsonServersDontSerializeNullStructureValues:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SimpleScalarProperties: testFunction as SimpleScalarProperties<{}>, @@ -29218,7 +29216,7 @@ it("RestJsonServersDontSerializeNullStructureValues:ServerRequest", async () => * Supports handling NaN float values. */ it("RestJsonSupportsNaNFloatInputs:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SimpleScalarProperties: testFunction as SimpleScalarProperties<{}>, @@ -29263,7 +29261,7 @@ it("RestJsonSupportsNaNFloatInputs:ServerRequest", async () => { * Supports handling Infinity float values. */ it("RestJsonSupportsInfinityFloatInputs:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SimpleScalarProperties: testFunction as SimpleScalarProperties<{}>, @@ -29308,7 +29306,7 @@ it("RestJsonSupportsInfinityFloatInputs:ServerRequest", async () => { * Supports handling -Infinity float values. */ it("RestJsonSupportsNegativeInfinityFloatInputs:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SimpleScalarProperties: testFunction as SimpleScalarProperties<{}>, @@ -29666,7 +29664,7 @@ it("RestJsonSupportsNegativeInfinityFloatInputs:ServerResponse", async () => { * Serializes null values in sparse lists */ it("RestJsonSparseListsSerializeNull:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SparseJsonLists: testFunction as SparseJsonLists<{}>, @@ -29779,7 +29777,7 @@ it("RestJsonSparseListsSerializeNull:ServerResponse", async () => { * Serializes JSON maps */ it("RestJsonSparseJsonMaps:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SparseJsonMaps: testFunction as SparseJsonMaps<{}>, @@ -29832,7 +29830,7 @@ it("RestJsonSparseJsonMaps:ServerRequest", async () => { * Serializes JSON map values in sparse maps */ it("RestJsonSerializesSparseNullMapValues:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SparseJsonMaps: testFunction as SparseJsonMaps<{}>, @@ -29889,7 +29887,7 @@ it("RestJsonSerializesSparseNullMapValues:ServerRequest", async () => { * Ensure that 0 and false are sent over the wire in all maps and lists */ it("RestJsonSerializesZeroValuesInSparseMaps:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SparseJsonMaps: testFunction as SparseJsonMaps<{}>, @@ -29940,7 +29938,7 @@ it("RestJsonSerializesZeroValuesInSparseMaps:ServerRequest", async () => { * A request that contains a sparse map of sets */ it("RestJsonSerializesSparseSetMap:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SparseJsonMaps: testFunction as SparseJsonMaps<{}>, @@ -29987,7 +29985,7 @@ it("RestJsonSerializesSparseSetMap:ServerRequest", async () => { * A request that contains a sparse map of sets. */ it("RestJsonSerializesSparseSetMapAndRetainsNull:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { SparseJsonMaps: testFunction as SparseJsonMaps<{}>, @@ -30387,7 +30385,7 @@ it("RestJsonDeserializesSparseSetMapAndRetainsNull:ServerResponse", async () => * Serializes a blob in the HTTP payload */ it("RestJsonStreamingTraitsWithBlob:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { StreamingTraits: testFunction as StreamingTraits<{}>, @@ -30438,7 +30436,7 @@ it("RestJsonStreamingTraitsWithBlob:ServerRequest", async () => { * Serializes an empty blob in the HTTP payload */ it("RestJsonStreamingTraitsWithNoBlobBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { StreamingTraits: testFunction as StreamingTraits<{}>, @@ -30598,7 +30596,7 @@ it("RestJsonStreamingTraitsWithNoBlobBody:ServerResponse", async () => { * Serializes a blob in the HTTP payload with a required length */ it("RestJsonStreamingTraitsRequireLengthWithBlob:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { StreamingTraitsRequireLength: testFunction as StreamingTraitsRequireLength<{}>, @@ -30649,7 +30647,7 @@ it("RestJsonStreamingTraitsRequireLengthWithBlob:ServerRequest", async () => { * Serializes an empty blob in the HTTP payload */ it("RestJsonStreamingTraitsRequireLengthWithNoBlobBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { StreamingTraitsRequireLength: testFunction as StreamingTraitsRequireLength<{}>, @@ -30698,7 +30696,7 @@ it("RestJsonStreamingTraitsRequireLengthWithNoBlobBody:ServerRequest", async () * Serializes a blob in the HTTP payload with a content-type */ it("RestJsonStreamingTraitsWithMediaTypeWithBlob:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { StreamingTraitsWithMediaType: testFunction as StreamingTraitsWithMediaType<{}>, @@ -30808,7 +30806,7 @@ it("RestJsonStreamingTraitsWithMediaTypeWithBlob:ServerResponse", async () => { * Serializes a structure */ it("RestJsonTestBodyStructure:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestBodyStructure: testFunction as TestBodyStructure<{}>, @@ -30854,7 +30852,7 @@ it("RestJsonTestBodyStructure:ServerRequest", async () => { * Serializes an empty structure in the body */ it("RestJsonHttpWithEmptyBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestBodyStructure: testFunction as TestBodyStructure<{}>, @@ -30888,7 +30886,7 @@ it("RestJsonHttpWithEmptyBody:ServerRequest", async () => { * Serializes a GET request for an operation with no input, and therefore no modeled body */ it("RestJsonHttpGetWithNoInput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestGetNoInputNoPayload: testFunction as TestGetNoInputNoPayload<{}>, @@ -30920,7 +30918,7 @@ it("RestJsonHttpGetWithNoInput:ServerRequest", async () => { * Serializes a GET request with no modeled body */ it("RestJsonHttpGetWithNoModeledBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestGetNoPayload: testFunction as TestGetNoPayload<{}>, @@ -30952,7 +30950,7 @@ it("RestJsonHttpGetWithNoModeledBody:ServerRequest", async () => { * Serializes a GET request with header member but no modeled body */ it("RestJsonHttpGetWithHeaderMemberNoModeledBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestGetNoPayload: testFunction as TestGetNoPayload<{}>, @@ -30996,7 +30994,7 @@ it("RestJsonHttpGetWithHeaderMemberNoModeledBody:ServerRequest", async () => { * Serializes a payload targeting an empty blob */ it("RestJsonHttpWithEmptyBlobPayload:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPayloadBlob: testFunction as TestPayloadBlob<{}>, @@ -31028,7 +31026,7 @@ it("RestJsonHttpWithEmptyBlobPayload:ServerRequest", async () => { * Serializes a payload targeting a blob */ it("RestJsonTestPayloadBlob:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPayloadBlob: testFunction as TestPayloadBlob<{}>, @@ -31073,7 +31071,7 @@ it("RestJsonTestPayloadBlob:ServerRequest", async () => { * Serializes a payload targeting an empty structure */ it("RestJsonHttpWithEmptyStructurePayload:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPayloadStructure: testFunction as TestPayloadStructure<{}>, @@ -31107,7 +31105,7 @@ it("RestJsonHttpWithEmptyStructurePayload:ServerRequest", async () => { * Serializes a payload targeting a structure */ it("RestJsonTestPayloadStructure:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPayloadStructure: testFunction as TestPayloadStructure<{}>, @@ -31153,7 +31151,7 @@ it("RestJsonTestPayloadStructure:ServerRequest", async () => { * Serializes an request with header members but no payload */ it("RestJsonHttpWithHeadersButNoPayload:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPayloadStructure: testFunction as TestPayloadStructure<{}>, @@ -31198,7 +31196,7 @@ it("RestJsonHttpWithHeadersButNoPayload:ServerRequest", async () => { * Serializes a POST request for an operation with no input, and therefore no modeled body */ it("RestJsonHttpPostWithNoInput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPostNoInputNoPayload: testFunction as TestPostNoInputNoPayload<{}>, @@ -31230,7 +31228,7 @@ it("RestJsonHttpPostWithNoInput:ServerRequest", async () => { * Serializes a POST request with no modeled body */ it("RestJsonHttpPostWithNoModeledBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPostNoPayload: testFunction as TestPostNoPayload<{}>, @@ -31262,7 +31260,7 @@ it("RestJsonHttpPostWithNoModeledBody:ServerRequest", async () => { * Serializes a POST request with header member but no modeled body */ it("RestJsonHttpWithPostHeaderMemberNoModeledBody:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TestPostNoPayload: testFunction as TestPostNoPayload<{}>, @@ -31306,7 +31304,7 @@ it("RestJsonHttpWithPostHeaderMemberNoModeledBody:ServerRequest", async () => { * Tests how timestamp request headers are serialized */ it("RestJsonTimestampFormatHeaders:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { TimestampFormatHeaders: testFunction as TimestampFormatHeaders<{}>, @@ -31432,7 +31430,7 @@ it("RestJsonTimestampFormatHeaders:ServerResponse", async () => { * a payload altogether. */ it("RestJsonUnitInputAndOutput:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { UnitInputAndOutput: testFunction as UnitInputAndOutput<{}>, @@ -31465,7 +31463,7 @@ it("RestJsonUnitInputAndOutput:ServerRequest", async () => { * default content-type. */ it("RestJsonUnitInputAllowsAccept:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { UnitInputAndOutput: testFunction as UnitInputAndOutput<{}>, diff --git a/private/aws-restjson-server/vitest.config.js b/private/aws-restjson-server/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-restjson-server/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-restjson-validation-server/jest.config.js b/private/aws-restjson-validation-server/jest.config.js new file mode 100644 index 0000000000000..a8d1c2e499123 --- /dev/null +++ b/private/aws-restjson-validation-server/jest.config.js @@ -0,0 +1,5 @@ +const base = require("../../jest.config.base.js"); + +module.exports = { + ...base, +}; diff --git a/private/aws-restjson-validation-server/package.json b/private/aws-restjson-validation-server/package.json index 9b559b02c8798..7f5f737523b38 100644 --- a/private/aws-restjson-validation-server/package.json +++ b/private/aws-restjson-validation-server/package.json @@ -11,8 +11,7 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "prepack": "yarn run clean && yarn run build", - "test": "vitest run --passWithNoTests", - "test:watch": "vitest watch --passWithNot" + "test": "jest --coverage --passWithNoTests" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts b/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts index a9a0b676e3bb2..ccaa1d25c3cbd 100644 --- a/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts +++ b/private/aws-restjson-validation-server/test/functional/restjson1.spec.ts @@ -1,5 +1,3 @@ -import { test as it, vi, expect } from "vitest"; - // smithy-typescript generated code import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; import { Endpoint, HeaderBag, HttpHandlerOptions } from "@smithy/types"; @@ -222,7 +220,7 @@ function normalizeByteArrayType(data: any) { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumString_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -261,7 +259,7 @@ it("RestJsonMalformedEnumString_case0:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumString_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -300,7 +298,7 @@ it("RestJsonMalformedEnumString_case1:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumTraitString_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -339,7 +337,7 @@ it("RestJsonMalformedEnumTraitString_case0:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumTraitString_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -378,7 +376,7 @@ it("RestJsonMalformedEnumTraitString_case1:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumList_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -417,7 +415,7 @@ it("RestJsonMalformedEnumList_case0:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumList_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -456,7 +454,7 @@ it("RestJsonMalformedEnumList_case1:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumMapKey_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -495,7 +493,7 @@ it("RestJsonMalformedEnumMapKey_case0:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumMapKey_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -534,7 +532,7 @@ it("RestJsonMalformedEnumMapKey_case1:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumMapValue_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -573,7 +571,7 @@ it("RestJsonMalformedEnumMapValue_case0:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumMapValue_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -612,7 +610,7 @@ it("RestJsonMalformedEnumMapValue_case1:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumUnion_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -651,7 +649,7 @@ it("RestJsonMalformedEnumUnion_case0:MalformedRequest", async () => { * enum values are excluded from the response message. */ it("RestJsonMalformedEnumUnion_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -689,7 +687,7 @@ it("RestJsonMalformedEnumUnion_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthBlob_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -727,7 +725,7 @@ it("RestJsonMalformedLengthBlob_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthBlob_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -765,7 +763,7 @@ it("RestJsonMalformedLengthBlob_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthString_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -803,7 +801,7 @@ it("RestJsonMalformedLengthString_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthString_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -841,7 +839,7 @@ it("RestJsonMalformedLengthString_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthString_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -879,7 +877,7 @@ it("RestJsonMalformedLengthString_case2:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMinString:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -917,7 +915,7 @@ it("RestJsonMalformedLengthMinString:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMaxString:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -955,7 +953,7 @@ it("RestJsonMalformedLengthMaxString:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthList_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -993,7 +991,7 @@ it("RestJsonMalformedLengthList_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthList_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1031,7 +1029,7 @@ it("RestJsonMalformedLengthList_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthListValue_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1069,7 +1067,7 @@ it("RestJsonMalformedLengthListValue_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthListValue_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1107,7 +1105,7 @@ it("RestJsonMalformedLengthListValue_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMap_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1145,7 +1143,7 @@ it("RestJsonMalformedLengthMap_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMap_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1185,7 +1183,7 @@ it("RestJsonMalformedLengthMap_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMapKey_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1225,7 +1223,7 @@ it("RestJsonMalformedLengthMapKey_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMapKey_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1265,7 +1263,7 @@ it("RestJsonMalformedLengthMapKey_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMapValue_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1303,7 +1301,7 @@ it("RestJsonMalformedLengthMapValue_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMapValue_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1343,7 +1341,7 @@ it("RestJsonMalformedLengthMapValue_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthBlobOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1381,7 +1379,7 @@ it("RestJsonMalformedLengthBlobOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthBlobOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1419,7 +1417,7 @@ it("RestJsonMalformedLengthBlobOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthStringOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1457,7 +1455,7 @@ it("RestJsonMalformedLengthStringOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthStringOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1495,7 +1493,7 @@ it("RestJsonMalformedLengthStringOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthStringOverride_case2:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1533,7 +1531,7 @@ it("RestJsonMalformedLengthStringOverride_case2:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMinStringOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1571,7 +1569,7 @@ it("RestJsonMalformedLengthMinStringOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMaxStringOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1609,7 +1607,7 @@ it("RestJsonMalformedLengthMaxStringOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthListOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1647,7 +1645,7 @@ it("RestJsonMalformedLengthListOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthListOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1685,7 +1683,7 @@ it("RestJsonMalformedLengthListOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMapOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1725,7 +1723,7 @@ it("RestJsonMalformedLengthMapOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthMapOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1765,7 +1763,7 @@ it("RestJsonMalformedLengthMapOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedLengthQueryStringNoValue:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1805,7 +1803,7 @@ it("RestJsonMalformedLengthQueryStringNoValue:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternString_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1843,7 +1841,7 @@ it("RestJsonMalformedPatternString_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternString_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1881,7 +1879,7 @@ it("RestJsonMalformedPatternString_case1:MalformedRequest", async () => { * hang indefinitely while evaluating the pattern */ it.skip("RestJsonMalformedPatternReDOSString:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1921,7 +1919,7 @@ it.skip("RestJsonMalformedPatternReDOSString:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternList_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1959,7 +1957,7 @@ it("RestJsonMalformedPatternList_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternList_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -1997,7 +1995,7 @@ it("RestJsonMalformedPatternList_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapKey_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2035,7 +2033,7 @@ it("RestJsonMalformedPatternMapKey_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapKey_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2073,7 +2071,7 @@ it("RestJsonMalformedPatternMapKey_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapValue_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2111,7 +2109,7 @@ it("RestJsonMalformedPatternMapValue_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapValue_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2149,7 +2147,7 @@ it("RestJsonMalformedPatternMapValue_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternUnion_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2187,7 +2185,7 @@ it("RestJsonMalformedPatternUnion_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternUnion_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2225,7 +2223,7 @@ it("RestJsonMalformedPatternUnion_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternStringOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2263,7 +2261,7 @@ it("RestJsonMalformedPatternStringOverride_case0:MalformedRequest", async () => * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternStringOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2301,7 +2299,7 @@ it("RestJsonMalformedPatternStringOverride_case1:MalformedRequest", async () => * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternListOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2339,7 +2337,7 @@ it("RestJsonMalformedPatternListOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternListOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2377,7 +2375,7 @@ it("RestJsonMalformedPatternListOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapKeyOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2415,7 +2413,7 @@ it("RestJsonMalformedPatternMapKeyOverride_case0:MalformedRequest", async () => * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapKeyOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2453,7 +2451,7 @@ it("RestJsonMalformedPatternMapKeyOverride_case1:MalformedRequest", async () => * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapValueOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2491,7 +2489,7 @@ it("RestJsonMalformedPatternMapValueOverride_case0:MalformedRequest", async () = * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternMapValueOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2529,7 +2527,7 @@ it("RestJsonMalformedPatternMapValueOverride_case1:MalformedRequest", async () = * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternUnionOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2567,7 +2565,7 @@ it("RestJsonMalformedPatternUnionOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedPatternUnionOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2605,7 +2603,7 @@ it("RestJsonMalformedPatternUnionOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeByte_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2643,7 +2641,7 @@ it("RestJsonMalformedRangeByte_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeByte_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2681,7 +2679,7 @@ it("RestJsonMalformedRangeByte_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinByte:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2719,7 +2717,7 @@ it("RestJsonMalformedRangeMinByte:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxByte:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2757,7 +2755,7 @@ it("RestJsonMalformedRangeMaxByte:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeFloat_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2795,7 +2793,7 @@ it("RestJsonMalformedRangeFloat_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeFloat_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2833,7 +2831,7 @@ it("RestJsonMalformedRangeFloat_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinFloat:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2871,7 +2869,7 @@ it("RestJsonMalformedRangeMinFloat:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxFloat:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2909,7 +2907,7 @@ it("RestJsonMalformedRangeMaxFloat:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeShort_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2947,7 +2945,7 @@ it("RestJsonMalformedRangeShort_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeShort_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -2985,7 +2983,7 @@ it("RestJsonMalformedRangeShort_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinShort:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3023,7 +3021,7 @@ it("RestJsonMalformedRangeMinShort:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxShort:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3061,7 +3059,7 @@ it("RestJsonMalformedRangeMaxShort:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeInteger_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3099,7 +3097,7 @@ it("RestJsonMalformedRangeInteger_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeInteger_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3137,7 +3135,7 @@ it("RestJsonMalformedRangeInteger_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinInteger:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3175,7 +3173,7 @@ it("RestJsonMalformedRangeMinInteger:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxInteger:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3213,7 +3211,7 @@ it("RestJsonMalformedRangeMaxInteger:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeLong_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3251,7 +3249,7 @@ it("RestJsonMalformedRangeLong_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeLong_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3289,7 +3287,7 @@ it("RestJsonMalformedRangeLong_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinLong:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3327,7 +3325,7 @@ it("RestJsonMalformedRangeMinLong:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxLong:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3365,7 +3363,7 @@ it("RestJsonMalformedRangeMaxLong:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeByteOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3403,7 +3401,7 @@ it("RestJsonMalformedRangeByteOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeByteOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3441,7 +3439,7 @@ it("RestJsonMalformedRangeByteOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinByteOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3479,7 +3477,7 @@ it("RestJsonMalformedRangeMinByteOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxByteOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3517,7 +3515,7 @@ it("RestJsonMalformedRangeMaxByteOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeFloatOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3555,7 +3553,7 @@ it("RestJsonMalformedRangeFloatOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeFloatOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3593,7 +3591,7 @@ it("RestJsonMalformedRangeFloatOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinFloatOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3631,7 +3629,7 @@ it("RestJsonMalformedRangeMinFloatOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxFloatOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3669,7 +3667,7 @@ it("RestJsonMalformedRangeMaxFloatOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeShortOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3707,7 +3705,7 @@ it("RestJsonMalformedRangeShortOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeShortOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3745,7 +3743,7 @@ it("RestJsonMalformedRangeShortOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinShortOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3783,7 +3781,7 @@ it("RestJsonMalformedRangeMinShortOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxShortOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3821,7 +3819,7 @@ it("RestJsonMalformedRangeMaxShortOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeIntegerOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3859,7 +3857,7 @@ it("RestJsonMalformedRangeIntegerOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeIntegerOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3897,7 +3895,7 @@ it("RestJsonMalformedRangeIntegerOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinIntegerOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3935,7 +3933,7 @@ it("RestJsonMalformedRangeMinIntegerOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxIntegerOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -3973,7 +3971,7 @@ it("RestJsonMalformedRangeMaxIntegerOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeLongOverride_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4011,7 +4009,7 @@ it("RestJsonMalformedRangeLongOverride_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeLongOverride_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4049,7 +4047,7 @@ it("RestJsonMalformedRangeLongOverride_case1:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMinLongOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4087,7 +4085,7 @@ it("RestJsonMalformedRangeMinLongOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRangeMaxLongOverride:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4125,7 +4123,7 @@ it("RestJsonMalformedRangeMaxLongOverride:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRequiredBodyUnset:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4166,7 +4164,7 @@ it("RestJsonMalformedRequiredBodyUnset:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRequiredBodyExplicitNull:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4207,7 +4205,7 @@ it("RestJsonMalformedRequiredBodyExplicitNull:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedRequiredHeaderUnset:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4247,7 +4245,7 @@ it("RestJsonMalformedRequiredHeaderUnset:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsBlobList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4285,7 +4283,7 @@ it("RestJsonMalformedUniqueItemsBlobList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsBooleanList_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4323,7 +4321,7 @@ it("RestJsonMalformedUniqueItemsBooleanList_case0:MalformedRequest", async () => * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsBooleanList_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4361,7 +4359,7 @@ it("RestJsonMalformedUniqueItemsBooleanList_case1:MalformedRequest", async () => * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsStringList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4399,7 +4397,7 @@ it("RestJsonMalformedUniqueItemsStringList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsByteList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4437,7 +4435,7 @@ it("RestJsonMalformedUniqueItemsByteList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsShortList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4475,7 +4473,7 @@ it("RestJsonMalformedUniqueItemsShortList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsIntegerList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4513,7 +4511,7 @@ it("RestJsonMalformedUniqueItemsIntegerList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsLongList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4551,7 +4549,7 @@ it("RestJsonMalformedUniqueItemsLongList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsTimestampList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4589,7 +4587,7 @@ it("RestJsonMalformedUniqueItemsTimestampList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsDateTimeList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4627,7 +4625,7 @@ it("RestJsonMalformedUniqueItemsDateTimeList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsHttpDateList_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4665,7 +4663,7 @@ it("RestJsonMalformedUniqueItemsHttpDateList_case0:MalformedRequest", async () = * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsEnumList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4703,7 +4701,7 @@ it("RestJsonMalformedUniqueItemsEnumList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsIntEnumList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4741,7 +4739,7 @@ it("RestJsonMalformedUniqueItemsIntEnumList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsListList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4779,7 +4777,7 @@ it("RestJsonMalformedUniqueItemsListList:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsStructureList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4818,7 +4816,7 @@ it("RestJsonMalformedUniqueItemsStructureList:MalformedRequest", async () => { * a 500 error. */ it("RestJsonMalformedUniqueItemsStructureMissingKeyList:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4856,7 +4854,7 @@ it("RestJsonMalformedUniqueItemsStructureMissingKeyList:MalformedRequest", async * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsUnionList_case0:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4894,7 +4892,7 @@ it("RestJsonMalformedUniqueItemsUnionList_case0:MalformedRequest", async () => { * the response should be a 400 ValidationException. */ it("RestJsonMalformedUniqueItemsUnionList_case1:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -4931,7 +4929,7 @@ it("RestJsonMalformedUniqueItemsUnionList_case1:MalformedRequest", async () => { * Validation should work with recursive structures. */ it("RestJsonRecursiveStructuresValidate:ServerRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockReturnValue(Promise.resolve({})); const testService: Partial> = { RecursiveStructures: testFunction as RecursiveStructures<{}>, @@ -4974,7 +4972,7 @@ it("RestJsonRecursiveStructuresValidate:ServerRequest", async () => { * a 400 ValidationException is returned. */ it("RestJsonMalformedRecursiveStructures:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); @@ -5012,7 +5010,7 @@ it("RestJsonMalformedRecursiveStructures:MalformedRequest", async () => { * ValidationException will omit the value of the input. */ it("RestJsonMalformedPatternSensitiveString:MalformedRequest", async () => { - const testFunction = vi.fn(); + const testFunction = jest.fn(); testFunction.mockImplementation(() => { throw new Error("This request should have been rejected."); }); diff --git a/private/aws-restjson-validation-server/vitest.config.js b/private/aws-restjson-validation-server/vitest.config.js new file mode 100644 index 0000000000000..ff6aa0c5d1dc4 --- /dev/null +++ b/private/aws-restjson-validation-server/vitest.config.js @@ -0,0 +1,10 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-util-test/package.json b/private/aws-util-test/package.json index cf76bb7187b90..8a45076395e11 100644 --- a/private/aws-util-test/package.json +++ b/private/aws-util-test/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "prepack": "yarn run clean && yarn run build", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test:integration": "vitest run -c vitest.config.integ.js", + "test:integration:watch": "vitest watch -c vitest.config.integ.js" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-util-test/src/clients/Weather.integ.spec.ts b/private/aws-util-test/src/clients/Weather.integ.spec.ts index 4df5afaea2a68..2efeb8bcdd95e 100644 --- a/private/aws-util-test/src/clients/Weather.integ.spec.ts +++ b/private/aws-util-test/src/clients/Weather.integ.spec.ts @@ -1,5 +1,6 @@ +import { test as it, describe, expect } from "vitest"; + import { Weather } from "@aws-sdk/weather"; -import { describe, expect, test as it } from "vitest"; import { requireRequestsFrom } from "../requests/test-http-handler"; diff --git a/private/aws-util-test/src/requests/test-http-handler.integ.spec.ts b/private/aws-util-test/src/requests/test-http-handler.integ.spec.ts index 85d8a8697da86..9c7f54f5bafef 100644 --- a/private/aws-util-test/src/requests/test-http-handler.integ.spec.ts +++ b/private/aws-util-test/src/requests/test-http-handler.integ.spec.ts @@ -1,4 +1,4 @@ -import { describe, expect, test as it } from "vitest"; +import { test as it, describe, expect } from "vitest"; // import { JsonProtocol } from "@aws-sdk/aws-protocoltests-json"; // CI has difficult importing a named private client from the workspace. diff --git a/private/aws-util-test/vitest.config.integ.js b/private/aws-util-test/vitest.config.integ.js new file mode 100644 index 0000000000000..5f2f9bbda2c40 --- /dev/null +++ b/private/aws-util-test/vitest.config.integ.js @@ -0,0 +1,9 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + include: ["**/*.integ.spec.ts"], + environment: "node", + globals: true, + }, +}); diff --git a/private/aws-util-test/vitest.config.integ.ts b/private/aws-util-test/vitest.config.integ.ts index 5802db1ac64a8..35e2b17c4f3d3 100644 --- a/private/aws-util-test/vitest.config.integ.ts +++ b/private/aws-util-test/vitest.config.integ.ts @@ -2,7 +2,7 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - include: ["**/*.integ.spec.ts"], + include: ["**/*.integ.spec.{ts,js}"], environment: "node", }, }); diff --git a/private/weather/vite.config.js b/private/weather/vite.config.js deleted file mode 100644 index e7147d3ac9e1d..0000000000000 --- a/private/weather/vite.config.js +++ /dev/null @@ -1,8 +0,0 @@ -import { defineConfig } from "vite"; - -export default defineConfig({ - test: { - include: ["**/*.spec.ts"], - globals: true, - }, -}); diff --git a/scripts/validation/vitest-validation.js b/scripts/validation/vitest-validation.js index 946b25ac15454..13c98f9741764 100644 --- a/scripts/validation/vitest-validation.js +++ b/scripts/validation/vitest-validation.js @@ -75,6 +75,11 @@ const paths = [ (async () => { for (const folder of paths) { const pkgJson = require(path.join(folder, "package.json")); + const isPrivate = folder.includes("/private/"); + let configExtension = "ts"; + if (folder.includes("/private/")) { + configExtension = "js"; + } if (pkgJson.scripts.test) { if (fs.existsSync(path.join(folder, "jest.config.js"))) { @@ -87,14 +92,15 @@ const paths = [ pkgJson.scripts.test = "vitest run"; pkgJson.scripts["test:watch"] = "vitest watch"; fs.writeFileSync( - path.join(folder, "vitest.config.ts"), + path.join(folder, `vitest.config.${configExtension}`), `import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - exclude: ["**/*.{integ,e2e,browser}.spec.{ts,js}"], - include: ["**/*.spec.{ts,js}"], + exclude: ["**/*.{integ,e2e,browser}.spec.ts"], + include: ["**/*.spec.ts"], environment: "node", + ${isPrivate ? "globals: true,\n" : ""} }, }); ` @@ -110,21 +116,22 @@ const paths = [ fs.rmSync(path.join(folder, `jest.config.${testType}.js`)); } if (pkgJson.scripts[`test:${script}`]) { - pkgJson.scripts[`test:${script}:watch`] = `vitest watch -c vitest.config.${testType}.ts`; + pkgJson.scripts[`test:${script}:watch`] = `vitest watch -c vitest.config.${testType}.${configExtension}`; if ( pkgJson.scripts[`test:${script}`].includes("jest") || pkgJson.scripts[`test:${script}`].includes("vitest") ) { console.log(`setting ${testType} test to vitest`); - pkgJson.scripts[`test:${script}`] = `vitest run -c vitest.config.${testType}.ts`; + pkgJson.scripts[`test:${script}`] = `vitest run -c vitest.config.${testType}.${configExtension}`; fs.writeFileSync( - path.join(folder, `vitest.config.${testType}.ts`), + path.join(folder, `vitest.config.${testType}.${configExtension}`), `import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - include: ["**/*.${testType}.spec.{ts,js}"], + include: ["**/*.${testType}.spec.ts"], environment: "node", + ${isPrivate ? "globals: true,\n" : ""} }, }); ` @@ -135,6 +142,10 @@ const paths = [ fs.writeFileSync(path.join(folder, "package.json"), JSON.stringify(pkgJson, null, 2) + "\n"); + if (isPrivate) { + continue; + } + for await (const file of walk(path.join(folder))) { if (file.endsWith(".spec.ts")) { let contents = fs.readFileSync(file, "utf-8"); diff --git a/vitest.config.ts b/vitest.config.ts index 15e342b18cd80..e35b9249e8216 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -2,13 +2,13 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - exclude: ["**/*.{integ,e2e,browser}.spec.ts"], - include: [ - // "clients/client-*/**/*.spec.ts", - // "lib/**/*.spec.ts", - // "packages/body-checksum-browser/**/*.spec.ts", - "private/**/*.spec.ts", + exclude: [ + "**/*.{integ,e2e,browser}.spec.ts", + "private/aws-restjson-server/**/*.spec.ts", + "private/aws-restjson-validation-server/**/*.spec.ts", ], + include: ["clients/client-*/**/*.spec.ts", "lib/**/*.spec.ts", "packages/**/*.spec.ts", "private/**/*.spec.ts"], environment: "node", + globals: true, }, });