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