Skip to content

Commit fe153f8

Browse files
committed
test: private packages to vitest
1 parent 5626659 commit fe153f8

File tree

56 files changed

+992
-864
lines changed

Some content is hidden

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

56 files changed

+992
-864
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-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

private/aws-middleware-test/src/middleware-retry.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 { Lambda } from "@aws-sdk/client-lambda";
2-
import { describe, expect, test as it } from "vitest";
34

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

0 commit comments

Comments
 (0)