From 07cbb12c1178020e4733578d36862adbd22a887e Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 23 Oct 2024 18:55:30 +0000 Subject: [PATCH] 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 4591d8122f09..db572d58ead9 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 b33e7fdc3a26..1d3e3da769e3 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 8b32a55b72ed..5f852da77531 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 676346b9d173..69f3c3585f06 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 d44ada041d42..b9c869c67b3a 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 f257f3bcc5a1..877c6ffdba05 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 f6f1ac9e3d97..aeebbc68fbcd 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 ada0952d26d1..3bd5dd5623c2 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 445512290885..a8c1d23bea9b 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 185c4243b83d..4b99969d20ba 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 c78d0a62422f..b5818eb54fcb 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 edfbcb5ffc04..837430e90382 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 a778193ad285..4e4c3fd0b9d1 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 b356b7bcdc20..6898d56a2a90 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 92c14cbd1b4e..ce35a54b5de7 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", },