Skip to content

Commit 6db4f08

Browse files
committed
test: private packages to vitest
1 parent 90dd1c7 commit 6db4f08

File tree

60 files changed

+1008
-873
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1008
-873
lines changed

private/aws-client-api-test/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build:types": "tsc -p tsconfig.types.json",
1111
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1212
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13-
"test": "vitest run --passWithNoTests",
14-
"test:watch": "vitest watch --passWithNot"
13+
"test": "vitest run",
14+
"test:watch": "vitest watch"
1515
},
1616
"main": "./dist-cjs/index.js",
1717
"types": "./dist-types/index.d.ts",

private/aws-middleware-test/vitest.config.ts renamed to private/aws-client-api-test/vitest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default defineConfig({
55
exclude: ["**/*.{integ,e2e,browser}.spec.ts"],
66
include: ["**/*.spec.ts"],
77
environment: "node",
8+
globals: true,
89
},
910
});

private/aws-client-retry-test/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build:types": "tsc -p tsconfig.types.json",
1111
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1212
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13-
"test": "vitest run --passWithNoTests",
14-
"test:watch": "vitest watch --passWithNot"
13+
"test": "vitest run",
14+
"test:watch": "vitest watch"
1515
},
1616
"main": "./dist-cjs/index.js",
1717
"types": "./dist-types/index.d.ts",

private/aws-client-retry-test/src/ClientRetryTest.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { test as it, describe, expect } from "vitest";
2-
31
import { HeadObjectCommand, S3, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
42
import { HttpHandler, HttpResponse } from "@smithy/protocol-http";
53
import { AwsCredentialIdentity, RequestHandlerOutput } from "@smithy/types";
64
import { ConfiguredRetryStrategy, StandardRetryStrategy } from "@smithy/util-retry";
75
import { Readable } from "stream";
6+
import { describe, expect, test as it, vi } from "vitest";
87

98
const MOCK_REGION = "us-west-2";
109

@@ -66,7 +65,7 @@ describe("util-retry integration tests", () => {
6665
});
6766

6867
it("should retry until success", async () => {
69-
const mockHandle = jest
68+
const mockHandle = vi
7069
.fn()
7170
.mockResolvedValueOnce(mockThrottled)
7271
.mockResolvedValueOnce(mockThrottled)

private/aws-restjson-server/vitest.config.ts renamed to private/aws-client-retry-test/vitest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default defineConfig({
55
exclude: ["**/*.{integ,e2e,browser}.spec.ts"],
66
include: ["**/*.spec.ts"],
77
environment: "node",
8+
globals: true,
89
},
910
});

private/aws-echo-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build:types": "tsc -p tsconfig.types.json",
1111
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1212
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13-
"test": "vitest run --passWithNoTests",
14-
"test:watch": "vitest watch --passWithNot"
13+
"test": "vitest run",
14+
"test:watch": "vitest watch"
1515
},
1616
"main": "./dist-cjs/index.js",
1717
"types": "./dist-types/index.d.ts",

private/aws-restjson-validation-server/vitest.config.ts renamed to private/aws-echo-service/vitest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export default defineConfig({
55
exclude: ["**/*.{integ,e2e,browser}.spec.ts"],
66
include: ["**/*.spec.ts"],
77
environment: "node",
8+
globals: true,
89
},
910
});

private/aws-middleware-test/src/middleware-apply-body-checksum.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
import { test as it, describe, expect } from "vitest";
2+
13
import { S3Control } from "@aws-sdk/client-s3-control";
2-
import { describe, expect, test as it } from "vitest";
34

45
import { requireRequestsFrom } from "../../aws-util-test/src";
56

private/aws-middleware-test/src/middleware-content-length.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { test as it, describe, expect } from "vitest";
2+
13
import { AccessAnalyzer } from "@aws-sdk/client-accessanalyzer";
24
import { S3 } from "@aws-sdk/client-s3";
35
import { XRay } from "@aws-sdk/client-xray";
4-
import { describe, expect, test as it } from "vitest";
56

67
import { requireRequestsFrom } from "../../../private/aws-util-test/src";
78

private/aws-middleware-test/src/middleware-endpoint.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import { test as it, describe, expect } from "vitest";
2+
13
import { S3 } from "@aws-sdk/client-s3";
24
import { S3Control } from "@aws-sdk/client-s3-control";
3-
import { describe, expect, test as it } from "vitest";
45

56
import { requireRequestsFrom } from "../../aws-util-test/src";
67

0 commit comments

Comments
 (0)