Skip to content

Commit

Permalink
test: private tests to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Oct 23, 2024
1 parent e6c8cc6 commit 07cbb12
Show file tree
Hide file tree
Showing 58 changed files with 890 additions and 980 deletions.
5 changes: 0 additions & 5 deletions private/aws-client-api-test/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-client-api-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { test as it, describe, expect } from "vitest";

import { ClientS3InterfaceTest } from "./ClientS3InterfaceTest";
import { RESOLVED_FIELDS } from "./RESOLVED_FIELDS";

Expand Down
5 changes: 0 additions & 5 deletions private/aws-client-retry-test/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-client-retry-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions private/aws-client-retry-test/src/ClientRetryTest.spec.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
4 changes: 0 additions & 4 deletions private/aws-echo-service/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-echo-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-ec2/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-ec2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-json-10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-json-10/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-json-10/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-json-machinelearning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-json-machinelearning/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-json-machinelearning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-json/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-query/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-query/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-restjson-apigateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-restjson-apigateway/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-restjson-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-restjson-glacier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-restjson-glacier/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-restjson-glacier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-restjson/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-restjson/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-restjson/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion private/aws-protocoltests-restxml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-restxml/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-restxml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 0 additions & 5 deletions private/aws-protocoltests-smithy-rpcv2-cbor/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-protocoltests-smithy-rpcv2-cbor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
5 changes: 0 additions & 5 deletions private/aws-restjson-server/jest.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion private/aws-restjson-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 07cbb12

Please sign in to comment.