From 361a738127c50ca0b6461241356f0df4fe255a6e Mon Sep 17 00:00:00 2001 From: George Fu Date: Thu, 14 Nov 2024 15:58:14 -0500 Subject: [PATCH] test: use yarn g:vitest to run vitest in individual packages (#6665) --- Makefile | 14 +++++++------- clients/client-cognito-identity/package.json | 4 ++-- clients/client-eventbridge/package.json | 4 ++-- clients/client-kinesis/package.json | 4 ++-- clients/client-lex-runtime-service/package.json | 4 ++-- clients/client-mediastore-data/package.json | 4 ++-- clients/client-s3-control/package.json | 4 ++-- clients/client-s3/package.json | 10 +++++----- clients/client-sts/package.json | 4 ++-- clients/client-transcribe-streaming/package.json | 4 ++-- lib/lib-dynamodb/package.json | 8 ++++---- lib/lib-storage/package.json | 8 ++++---- package.json | 1 + packages/body-checksum-browser/package.json | 4 ++-- packages/body-checksum-node/package.json | 4 ++-- packages/chunked-stream-reader-node/package.json | 4 ++-- packages/cloudfront-signer/package.json | 4 ++-- packages/core/package.json | 8 ++++---- .../package.json | 8 ++++---- packages/credential-provider-env/package.json | 4 ++-- packages/credential-provider-http/package.json | 4 ++-- packages/credential-provider-ini/package.json | 4 ++-- packages/credential-provider-node/package.json | 4 ++-- packages/credential-provider-process/package.json | 4 ++-- packages/credential-provider-sso/package.json | 4 ++-- .../credential-provider-web-identity/package.json | 4 ++-- packages/credential-providers/package.json | 4 ++-- packages/ec2-metadata-service/package.json | 8 ++++---- packages/endpoint-cache/package.json | 4 ++-- packages/eventstream-handler-node/package.json | 4 ++-- packages/middleware-api-key/package.json | 4 ++-- packages/middleware-bucket-endpoint/package.json | 4 ++-- .../middleware-endpoint-discovery/package.json | 8 ++++---- packages/middleware-eventstream/package.json | 4 ++-- packages/middleware-expect-continue/package.json | 8 ++++---- .../middleware-flexible-checksums/package.json | 8 ++++---- packages/middleware-host-header/package.json | 8 ++++---- .../middleware-location-constraint/package.json | 8 ++++---- packages/middleware-logger/package.json | 8 ++++---- .../middleware-recursion-detection/package.json | 8 ++++---- packages/middleware-sdk-api-gateway/package.json | 8 ++++---- packages/middleware-sdk-ec2/package.json | 12 ++++++------ packages/middleware-sdk-glacier/package.json | 8 ++++---- .../middleware-sdk-machinelearning/package.json | 8 ++++---- packages/middleware-sdk-rds/package.json | 8 ++++---- packages/middleware-sdk-route53/package.json | 8 ++++---- packages/middleware-sdk-s3-control/package.json | 8 ++++---- packages/middleware-sdk-s3/package.json | 12 ++++++------ packages/middleware-sdk-sqs/package.json | 8 ++++---- packages/middleware-sdk-sts/package.json | 4 ++-- .../package.json | 8 ++++---- packages/middleware-signing/package.json | 8 ++++---- packages/middleware-ssec/package.json | 8 ++++---- packages/middleware-token/package.json | 12 ++++++------ packages/middleware-user-agent/package.json | 8 ++++---- packages/middleware-websocket/package.json | 8 ++++---- packages/polly-request-presigner/package.json | 4 ++-- packages/rds-signer/package.json | 4 ++-- packages/region-config-resolver/package.json | 4 ++-- packages/s3-presigned-post/package.json | 8 ++++---- packages/s3-request-presigner/package.json | 4 ++-- packages/sha256-tree-hash/package.json | 4 ++-- packages/signature-v4-multi-region/package.json | 4 ++-- packages/token-providers/package.json | 4 ++-- packages/util-arn-parser/package.json | 4 ++-- packages/util-create-request/package.json | 4 ++-- packages/util-dns/package.json | 8 ++++---- packages/util-dynamodb/package.json | 4 ++-- packages/util-endpoints/package.json | 8 ++++---- packages/util-format-url/package.json | 4 ++-- packages/util-locate-window/package.json | 4 ++-- packages/util-user-agent-browser/package.json | 4 ++-- packages/util-user-agent-node/package.json | 4 ++-- packages/xhr-http-handler/package.json | 4 ++-- packages/xml-builder/package.json | 4 ++-- private/aws-client-api-test/package.json | 4 ++-- private/aws-client-retry-test/package.json | 4 ++-- private/aws-middleware-test/package.json | 4 ++-- private/aws-protocoltests-ec2/package.json | 4 ++-- private/aws-protocoltests-json-10/package.json | 4 ++-- .../package.json | 4 ++-- private/aws-protocoltests-json/package.json | 4 ++-- private/aws-protocoltests-query/package.json | 4 ++-- .../package.json | 4 ++-- .../package.json | 4 ++-- private/aws-protocoltests-restjson/package.json | 4 ++-- private/aws-protocoltests-restxml/package.json | 4 ++-- .../package.json | 4 ++-- private/aws-restjson-server/package.json | 2 +- .../aws-restjson-validation-server/package.json | 2 +- private/aws-util-test/package.json | 4 ++-- private/weather/package.json | 2 +- scripts/validation/vitest-validation.js | 12 +++++++----- 93 files changed, 261 insertions(+), 258 deletions(-) diff --git a/Makefile b/Makefile index 96430d3db384..c538995c4861 100644 --- a/Makefile +++ b/Makefile @@ -13,23 +13,23 @@ sync: make -f Makefile.private.mk sync test-unit: build-s3-browser-bundle - npx vitest run -c vitest.config.ts - npx vitest run -c vitest.config.browser.ts - npx vitest run -c vitest.config.clients.unit.ts + yarn g:vitest run -c vitest.config.ts + yarn g:vitest run -c vitest.config.browser.ts + yarn g:vitest run -c vitest.config.clients.unit.ts npx jest -c jest.config.js test-protocols: build-s3-browser-bundle - npx vitest run -c vitest.config.protocols.integ.ts + yarn g:vitest run -c vitest.config.protocols.integ.ts test-integration: build-s3-browser-bundle rm -rf ./clients/client-sso/node_modules/\@smithy # todo(yarn) incompatible redundant nesting. - npx vitest run -c vitest.config.integ.ts + yarn g:vitest run -c vitest.config.integ.ts npx jest -c jest.config.integ.js make test-protocols; test-e2e: build-s3-browser-bundle - npx vitest run -c vitest.config.e2e.ts --retry=4 - npx vitest run -c vitest.config.browser.e2e.ts --retry=4 + yarn g:vitest run -c vitest.config.e2e.ts --retry=4 + yarn g:vitest run -c vitest.config.browser.e2e.ts --retry=4 build-s3-browser-bundle: node ./clients/client-s3/test/browser-build/esbuild diff --git a/clients/client-cognito-identity/package.json b/clients/client-cognito-identity/package.json index ec946769cefd..6e9ce4caea60 100644 --- a/clients/client-cognito-identity/package.json +++ b/clients/client-cognito-identity/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo cognito-identity", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-eventbridge/package.json b/clients/client-eventbridge/package.json index 4e732748bc6f..ad4046072f3d 100644 --- a/clients/client-eventbridge/package.json +++ b/clients/client-eventbridge/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo eventbridge", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-kinesis/package.json b/clients/client-kinesis/package.json index f94aea0fa8fa..de071b744dd5 100644 --- a/clients/client-kinesis/package.json +++ b/clients/client-kinesis/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo kinesis", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-lex-runtime-service/package.json b/clients/client-lex-runtime-service/package.json index ab0a3171ade2..328de5ea2c56 100644 --- a/clients/client-lex-runtime-service/package.json +++ b/clients/client-lex-runtime-service/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo lex-runtime-service", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-mediastore-data/package.json b/clients/client-mediastore-data/package.json index d707e639acac..183fc69fbad7 100644 --- a/clients/client-mediastore-data/package.json +++ b/clients/client-mediastore-data/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo mediastore-data", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-s3-control/package.json b/clients/client-s3-control/package.json index 283854c5dc6b..ea53fb0cd99e 100644 --- a/clients/client-s3-control/package.json +++ b/clients/client-s3-control/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo s3-control", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index 0e34fab24fe3..dadf215f7e10 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -12,12 +12,12 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo s3", - "test": "vitest run", + "test": "yarn g:vitest run", "test:browser": "node ./test/browser-build/esbuild && vitest run -c vitest.config.browser.ts --mode development", - "test:browser:watch": "node ./test/browser-build/esbuild && vitest watch -c vitest.config.browser.ts", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development && yarn test:browser", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts", - "test:watch": "vitest watch" + "test:browser:watch": "node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development && yarn test:browser", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-sts/package.json b/clients/client-sts/package.json index 2e1e6c906e1d..2dc81cebda4f 100644 --- a/clients/client-sts/package.json +++ b/clients/client-sts/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo sts", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/clients/client-transcribe-streaming/package.json b/clients/client-transcribe-streaming/package.json index b766ead81c29..83cdafaf5071 100644 --- a/clients/client-transcribe-streaming/package.json +++ b/clients/client-transcribe-streaming/package.json @@ -12,8 +12,8 @@ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", "generate:client": "node ../../scripts/generate-clients/single-service --solo transcribe-streaming", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/lib/lib-dynamodb/package.json b/lib/lib-dynamodb/package.json index f1e15e0ee48c..ef4d8d297cf7 100644 --- a/lib/lib-dynamodb/package.json +++ b/lib/lib-dynamodb/package.json @@ -14,10 +14,10 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", - "test:watch": "vitest watch", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test": "yarn g:vitest run", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", + "test:watch": "yarn g:vitest watch", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "engines": { "node": ">=16.0.0" diff --git a/lib/lib-storage/package.json b/lib/lib-storage/package.json index 749514adac0a..66e3f067a895 100644 --- a/lib/lib-storage/package.json +++ b/lib/lib-storage/package.json @@ -14,10 +14,10 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", - "test:watch": "vitest watch", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test": "yarn g:vitest run", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", + "test:watch": "yarn g:vitest watch", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "engines": { "node": ">=16.0.0" diff --git a/package.json b/package.json index 08f966920814..4fdc5d8027ec 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "clear-build-info": "rimraf ./packages/**/*.tsbuildinfo ./clients/**/*.tsbuildinfo ./lib/**/*.tsbuildinfo ./private/**/*.tsbuildinfo", "copy-models": "node ./scripts/copy-models", "extract:docs": "node ./scripts/extract-docs/index.js", + "g:vitest": "cd $INIT_CWD && vitest", "generate-clients": "node ./scripts/generate-clients", "generate:clients:generic": "node ./scripts/generate-clients/generic", "generate:defaults-mode-provider": "./scripts/generate-defaults-mode-provider/index.js", diff --git a/packages/body-checksum-browser/package.json b/packages/body-checksum-browser/package.json index be297cf2fbcc..0d989abe537d 100644 --- a/packages/body-checksum-browser/package.json +++ b/packages/body-checksum-browser/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/body-checksum-node/package.json b/packages/body-checksum-node/package.json index 83647f6ab01b..91181d818109 100644 --- a/packages/body-checksum-node/package.json +++ b/packages/body-checksum-node/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/chunked-stream-reader-node/package.json b/packages/chunked-stream-reader-node/package.json index 0fa56f22dfb8..916877392946 100644 --- a/packages/chunked-stream-reader-node/package.json +++ b/packages/chunked-stream-reader-node/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/cloudfront-signer/package.json b/packages/cloudfront-signer/package.json index f13c6a1ddcf2..11692bb22c62 100644 --- a/packages/cloudfront-signer/package.json +++ b/packages/cloudfront-signer/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/core/package.json b/packages/core/package.json index 64fff5eb8255..0fabc62f03e0 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -12,10 +12,10 @@ "lint": "node ./scripts/lint.js", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/credential-provider-cognito-identity/package.json b/packages/credential-provider-cognito-identity/package.json index a3a38d47cc3d..f0ab3595d7ca 100644 --- a/packages/credential-provider-cognito-identity/package.json +++ b/packages/credential-provider-cognito-identity/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run && yarn test:browser", - "test:watch": "vitest watch", - "test:browser": "vitest run -c vitest.config.browser.ts", - "test:browser:watch": "vitest watch -c vitest.config.browser.ts" + "test": "yarn g:vitest run && yarn test:browser", + "test:watch": "yarn g:vitest watch", + "test:browser": "yarn g:vitest run -c vitest.config.browser.ts", + "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/credential-provider-env/package.json b/packages/credential-provider-env/package.json index e57bb45ed1fa..a581e0234c63 100644 --- a/packages/credential-provider-env/package.json +++ b/packages/credential-provider-env/package.json @@ -12,8 +12,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/credential-provider-http/package.json b/packages/credential-provider-http/package.json index 92f39162887f..abd39a3abb07 100644 --- a/packages/credential-provider-http/package.json +++ b/packages/credential-provider-http/package.json @@ -14,8 +14,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/credential-provider-ini/package.json b/packages/credential-provider-ini/package.json index 977daa410ff9..3d8595666553 100644 --- a/packages/credential-provider-ini/package.json +++ b/packages/credential-provider-ini/package.json @@ -12,8 +12,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/credential-provider-node/package.json b/packages/credential-provider-node/package.json index 5ad953363551..bb467002b3bd 100644 --- a/packages/credential-provider-node/package.json +++ b/packages/credential-provider-node/package.json @@ -15,9 +15,9 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", + "test": "yarn g:vitest run", "test:integration": "jest -c jest.config.integ.js", - "test:watch": "vitest watch" + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/credential-provider-process/package.json b/packages/credential-provider-process/package.json index a332867674fc..8d02f7e85721 100644 --- a/packages/credential-provider-process/package.json +++ b/packages/credential-provider-process/package.json @@ -12,8 +12,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/credential-provider-sso/package.json b/packages/credential-provider-sso/package.json index 88a26de7d188..5fb5a72b8d60 100644 --- a/packages/credential-provider-sso/package.json +++ b/packages/credential-provider-sso/package.json @@ -12,8 +12,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/credential-provider-web-identity/package.json b/packages/credential-provider-web-identity/package.json index 4a3f0ec93d92..3fac4be29fdc 100644 --- a/packages/credential-provider-web-identity/package.json +++ b/packages/credential-provider-web-identity/package.json @@ -12,8 +12,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "browser": { "./dist-cjs/fromTokenFile": false, diff --git a/packages/credential-providers/package.json b/packages/credential-providers/package.json index 94bf479de06c..a3de5ca134a3 100644 --- a/packages/credential-providers/package.json +++ b/packages/credential-providers/package.json @@ -16,9 +16,9 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", + "test": "yarn g:vitest run", "test:integration": "jest -c jest.config.integ.js", - "test:watch": "vitest watch" + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/ec2-metadata-service/package.json b/packages/ec2-metadata-service/package.json index 55dfa53318ab..f9c93105c790 100644 --- a/packages/ec2-metadata-service/package.json +++ b/packages/ec2-metadata-service/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", - "test:watch": "vitest watch --passWithNoTests", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test": "yarn g:vitest run --passWithNoTests", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", + "test:watch": "yarn g:vitest watch --passWithNoTests", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/endpoint-cache/package.json b/packages/endpoint-cache/package.json index c34b39e8f43a..4c4d981c4458 100644 --- a/packages/endpoint-cache/package.json +++ b/packages/endpoint-cache/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/eventstream-handler-node/package.json b/packages/eventstream-handler-node/package.json index cf839e3802e7..740a9a90ef93 100644 --- a/packages/eventstream-handler-node/package.json +++ b/packages/eventstream-handler-node/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-api-key/package.json b/packages/middleware-api-key/package.json index 2c01c1e3332e..7d42908587e0 100644 --- a/packages/middleware-api-key/package.json +++ b/packages/middleware-api-key/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-bucket-endpoint/package.json b/packages/middleware-bucket-endpoint/package.json index cc77dd06b529..ef85a336388e 100644 --- a/packages/middleware-bucket-endpoint/package.json +++ b/packages/middleware-bucket-endpoint/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-endpoint-discovery/package.json b/packages/middleware-endpoint-discovery/package.json index 740a35bf3562..24d851ad9972 100644 --- a/packages/middleware-endpoint-discovery/package.json +++ b/packages/middleware-endpoint-discovery/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-eventstream/package.json b/packages/middleware-eventstream/package.json index 3c5c4978ad61..0cfd46ab2b47 100644 --- a/packages/middleware-eventstream/package.json +++ b/packages/middleware-eventstream/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "test": "exit 0", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-expect-continue/package.json b/packages/middleware-expect-continue/package.json index a1b2a049853e..0fa0ca880e0c 100644 --- a/packages/middleware-expect-continue/package.json +++ b/packages/middleware-expect-continue/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-flexible-checksums/package.json b/packages/middleware-flexible-checksums/package.json index 96dfc2cb5e85..211a8269cb07 100644 --- a/packages/middleware-flexible-checksums/package.json +++ b/packages/middleware-flexible-checksums/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-host-header/package.json b/packages/middleware-host-header/package.json index 9b84ba90482b..ba1ebc6b9c91 100644 --- a/packages/middleware-host-header/package.json +++ b/packages/middleware-host-header/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-location-constraint/package.json b/packages/middleware-location-constraint/package.json index 5228bf84b189..3eb31e56d6ed 100644 --- a/packages/middleware-location-constraint/package.json +++ b/packages/middleware-location-constraint/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-logger/package.json b/packages/middleware-logger/package.json index 094fe694dd79..0608cd48d515 100644 --- a/packages/middleware-logger/package.json +++ b/packages/middleware-logger/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/middleware-recursion-detection/package.json b/packages/middleware-recursion-detection/package.json index 83c90a254ceb..2842fabc1b35 100644 --- a/packages/middleware-recursion-detection/package.json +++ b/packages/middleware-recursion-detection/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-api-gateway/package.json b/packages/middleware-sdk-api-gateway/package.json index 29942be8a151..31dcba909c51 100644 --- a/packages/middleware-sdk-api-gateway/package.json +++ b/packages/middleware-sdk-api-gateway/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-ec2/package.json b/packages/middleware-sdk-ec2/package.json index aabae146897e..442b1f749247 100644 --- a/packages/middleware-sdk-ec2/package.json +++ b/packages/middleware-sdk-ec2/package.json @@ -9,12 +9,12 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts", - "test:e2e": "vitest run -c vitest.config.e2e.ts", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-glacier/package.json b/packages/middleware-sdk-glacier/package.json index 6597a1598872..7428d53c8d27 100644 --- a/packages/middleware-sdk-glacier/package.json +++ b/packages/middleware-sdk-glacier/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-machinelearning/package.json b/packages/middleware-sdk-machinelearning/package.json index 825bcfe33632..4075db5ac927 100644 --- a/packages/middleware-sdk-machinelearning/package.json +++ b/packages/middleware-sdk-machinelearning/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-rds/package.json b/packages/middleware-sdk-rds/package.json index 484d71647af6..0c2d848621e2 100644 --- a/packages/middleware-sdk-rds/package.json +++ b/packages/middleware-sdk-rds/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-route53/package.json b/packages/middleware-sdk-route53/package.json index 1cd9f7d2ee06..22194a27b446 100644 --- a/packages/middleware-sdk-route53/package.json +++ b/packages/middleware-sdk-route53/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-s3-control/package.json b/packages/middleware-sdk-s3-control/package.json index 09edc9dd8394..66fca9b4bdb5 100644 --- a/packages/middleware-sdk-s3-control/package.json +++ b/packages/middleware-sdk-s3-control/package.json @@ -9,11 +9,11 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", "extract:docs": "api-extractor run --local", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-s3/package.json b/packages/middleware-sdk-s3/package.json index 445a03e006f1..79aca97c70c5 100644 --- a/packages/middleware-sdk-s3/package.json +++ b/packages/middleware-sdk-s3/package.json @@ -9,13 +9,13 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", "extract:docs": "api-extractor run --local", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-sqs/package.json b/packages/middleware-sdk-sqs/package.json index 429f8cd7bb57..e7486003d02b 100644 --- a/packages/middleware-sdk-sqs/package.json +++ b/packages/middleware-sdk-sqs/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-sts/package.json b/packages/middleware-sdk-sts/package.json index b0cb49b33d6d..eab1c2f733c8 100644 --- a/packages/middleware-sdk-sts/package.json +++ b/packages/middleware-sdk-sts/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "test": "exit 0", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-sdk-transcribe-streaming/package.json b/packages/middleware-sdk-transcribe-streaming/package.json index b6451a89c0e0..ee051e41a54d 100644 --- a/packages/middleware-sdk-transcribe-streaming/package.json +++ b/packages/middleware-sdk-transcribe-streaming/package.json @@ -12,10 +12,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/middleware-signing/package.json b/packages/middleware-signing/package.json index 4d508a5775d4..a1170e3fb73e 100644 --- a/packages/middleware-signing/package.json +++ b/packages/middleware-signing/package.json @@ -9,11 +9,11 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", "extract:docs": "api-extractor run --local", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-ssec/package.json b/packages/middleware-ssec/package.json index 5cf3db05644f..5cdeb421f7c0 100644 --- a/packages/middleware-ssec/package.json +++ b/packages/middleware-ssec/package.json @@ -9,10 +9,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-token/package.json b/packages/middleware-token/package.json index 26d5d026193c..67e9ee9defc7 100644 --- a/packages/middleware-token/package.json +++ b/packages/middleware-token/package.json @@ -13,12 +13,12 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run && yarn test:browser", - "test:watch": "vitest watch", - "test:browser": "vitest run -c vitest.config.browser.ts", - "test:browser:watch": "vitest watch -c vitest.config.browser.ts", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run && yarn test:browser", + "test:watch": "yarn g:vitest watch", + "test:browser": "yarn g:vitest run -c vitest.config.browser.ts", + "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.ts", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "keywords": [ "aws", diff --git a/packages/middleware-user-agent/package.json b/packages/middleware-user-agent/package.json index 362d50519be5..0a284057b184 100644 --- a/packages/middleware-user-agent/package.json +++ b/packages/middleware-user-agent/package.json @@ -9,11 +9,11 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", "extract:docs": "api-extractor run --local", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/middleware-websocket/package.json b/packages/middleware-websocket/package.json index 4ab742458914..5369e9003134 100644 --- a/packages/middleware-websocket/package.json +++ b/packages/middleware-websocket/package.json @@ -12,10 +12,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/polly-request-presigner/package.json b/packages/polly-request-presigner/package.json index 348adf1e4514..823f27f9d5a5 100644 --- a/packages/polly-request-presigner/package.json +++ b/packages/polly-request-presigner/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/rds-signer/package.json b/packages/rds-signer/package.json index 4a7e1ba7bbb6..facab73db25c 100644 --- a/packages/rds-signer/package.json +++ b/packages/rds-signer/package.json @@ -14,8 +14,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "engines": { "node": ">=16.0.0" diff --git a/packages/region-config-resolver/package.json b/packages/region-config-resolver/package.json index dcc2201d606e..1547cd333d2b 100644 --- a/packages/region-config-resolver/package.json +++ b/packages/region-config-resolver/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/s3-presigned-post/package.json b/packages/s3-presigned-post/package.json index 80f0fdb82d7b..8509ca1af8a1 100644 --- a/packages/s3-presigned-post/package.json +++ b/packages/s3-presigned-post/package.json @@ -10,10 +10,10 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:e2e": "vitest run -c vitest.config.e2e.ts --mode development", - "test:watch": "vitest watch", - "test:e2e:watch": "vitest watch -c vitest.config.e2e.ts" + "test": "yarn g:vitest run", + "test:e2e": "yarn g:vitest run -c vitest.config.e2e.ts --mode development", + "test:watch": "yarn g:vitest watch", + "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.ts" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/s3-request-presigner/package.json b/packages/s3-request-presigner/package.json index 49dc759a9e75..c28b277342e3 100644 --- a/packages/s3-request-presigner/package.json +++ b/packages/s3-request-presigner/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/sha256-tree-hash/package.json b/packages/sha256-tree-hash/package.json index 1320506e138d..be0670614eb0 100644 --- a/packages/sha256-tree-hash/package.json +++ b/packages/sha256-tree-hash/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/signature-v4-multi-region/package.json b/packages/signature-v4-multi-region/package.json index fad34e5156e4..3a3b1d256e87 100644 --- a/packages/signature-v4-multi-region/package.json +++ b/packages/signature-v4-multi-region/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/token-providers/package.json b/packages/token-providers/package.json index 58223ee09643..fa7eb307ff96 100644 --- a/packages/token-providers/package.json +++ b/packages/token-providers/package.json @@ -14,8 +14,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "keywords": [ "aws", diff --git a/packages/util-arn-parser/package.json b/packages/util-arn-parser/package.json index ff40875ddef3..3f06faa31da4 100644 --- a/packages/util-arn-parser/package.json +++ b/packages/util-arn-parser/package.json @@ -12,8 +12,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/util-create-request/package.json b/packages/util-create-request/package.json index 8f0e91e106eb..2969e6f581f4 100644 --- a/packages/util-create-request/package.json +++ b/packages/util-create-request/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/util-dns/package.json b/packages/util-dns/package.json index 6605e0e80043..4b3f33d9e57c 100644 --- a/packages/util-dns/package.json +++ b/packages/util-dns/package.json @@ -12,10 +12,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run && yarn test:browser", - "test:watch": "vitest watch", - "test:browser": "vitest run -c vitest.config.browser.ts", - "test:browser:watch": "vitest watch -c vitest.config.browser.ts" + "test": "yarn g:vitest run && yarn test:browser", + "test:watch": "yarn g:vitest watch", + "test:browser": "yarn g:vitest run -c vitest.config.browser.ts", + "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.ts" }, "keywords": [ "dns" diff --git a/packages/util-dynamodb/package.json b/packages/util-dynamodb/package.json index a60db84a32f4..fb23d658bf45 100644 --- a/packages/util-dynamodb/package.json +++ b/packages/util-dynamodb/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/util-endpoints/package.json b/packages/util-endpoints/package.json index 15d75b6913d8..9ccf38890afd 100644 --- a/packages/util-endpoints/package.json +++ b/packages/util-endpoints/package.json @@ -13,10 +13,10 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:integration": "vitest run -c vitest.config.integ.ts", - "test:watch": "vitest watch", - "test:integration:watch": "vitest watch -c vitest.config.integ.ts" + "test": "yarn g:vitest run", + "test:integration": "yarn g:vitest run -c vitest.config.integ.ts", + "test:watch": "yarn g:vitest watch", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/util-format-url/package.json b/packages/util-format-url/package.json index 815309a667c7..112d6be2dbae 100644 --- a/packages/util-format-url/package.json +++ b/packages/util-format-url/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/util-locate-window/package.json b/packages/util-locate-window/package.json index ab996803f033..d89455581957 100644 --- a/packages/util-locate-window/package.json +++ b/packages/util-locate-window/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/packages/util-user-agent-browser/package.json b/packages/util-user-agent-browser/package.json index 31b96a14f954..c2a0485d708e 100644 --- a/packages/util-user-agent-browser/package.json +++ b/packages/util-user-agent-browser/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/util-user-agent-node/package.json b/packages/util-user-agent-node/package.json index d456140135a2..97eaceab7b72 100644 --- a/packages/util-user-agent-node/package.json +++ b/packages/util-user-agent-node/package.json @@ -9,8 +9,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "module": "./dist-es/index.js", diff --git a/packages/xhr-http-handler/package.json b/packages/xhr-http-handler/package.json index a9cc472fb1f6..0cf188092d64 100644 --- a/packages/xhr-http-handler/package.json +++ b/packages/xhr-http-handler/package.json @@ -11,8 +11,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "author": "AWS SDK for JavaScript Team (https://aws.amazon.com/javascript/)", "license": "Apache-2.0", diff --git a/packages/xml-builder/package.json b/packages/xml-builder/package.json index d517a13e1c3e..ebec5f39f904 100644 --- a/packages/xml-builder/package.json +++ b/packages/xml-builder/package.json @@ -14,8 +14,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "author": { "name": "AWS SDK for JavaScript Team", diff --git a/private/aws-client-api-test/package.json b/private/aws-client-api-test/package.json index 97a1729d3918..cee32024cefe 100644 --- a/private/aws-client-api-test/package.json +++ b/private/aws-client-api-test/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-client-retry-test/package.json b/private/aws-client-retry-test/package.json index db12a6332c49..72ae19c2d74e 100644 --- a/private/aws-client-retry-test/package.json +++ b/private/aws-client-retry-test/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-middleware-test/package.json b/private/aws-middleware-test/package.json index 8ac2349f219b..8b0b4328fadd 100644 --- a/private/aws-middleware-test/package.json +++ b/private/aws-middleware-test/package.json @@ -10,8 +10,8 @@ "build:types": "exit 0", "build:types:downlevel": "exit 0", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-ec2/package.json b/private/aws-protocoltests-ec2/package.json index 78d91897ac5a..5e2b7d105d05 100644 --- a/private/aws-protocoltests-ec2/package.json +++ b/private/aws-protocoltests-ec2/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-json-10/package.json b/private/aws-protocoltests-json-10/package.json index cdaa70f90c9a..89bf5dd5ab0d 100644 --- a/private/aws-protocoltests-json-10/package.json +++ b/private/aws-protocoltests-json-10/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-json-machinelearning/package.json b/private/aws-protocoltests-json-machinelearning/package.json index 9470595300c5..873147f36493 100644 --- a/private/aws-protocoltests-json-machinelearning/package.json +++ b/private/aws-protocoltests-json-machinelearning/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-json/package.json b/private/aws-protocoltests-json/package.json index ee9a00308f3c..a571db88db67 100644 --- a/private/aws-protocoltests-json/package.json +++ b/private/aws-protocoltests-json/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-query/package.json b/private/aws-protocoltests-query/package.json index 629a761fb240..2766d4ebb004 100644 --- a/private/aws-protocoltests-query/package.json +++ b/private/aws-protocoltests-query/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restjson-apigateway/package.json b/private/aws-protocoltests-restjson-apigateway/package.json index 22999caed7cc..f4fe7c4ee949 100644 --- a/private/aws-protocoltests-restjson-apigateway/package.json +++ b/private/aws-protocoltests-restjson-apigateway/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restjson-glacier/package.json b/private/aws-protocoltests-restjson-glacier/package.json index 80177adfe759..7a54dea54dc0 100644 --- a/private/aws-protocoltests-restjson-glacier/package.json +++ b/private/aws-protocoltests-restjson-glacier/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restjson/package.json b/private/aws-protocoltests-restjson/package.json index 507bbede10d7..25351714e088 100644 --- a/private/aws-protocoltests-restjson/package.json +++ b/private/aws-protocoltests-restjson/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index 7470503b8b8c..57b467632106 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-protocoltests-smithy-rpcv2-cbor/package.json b/private/aws-protocoltests-smithy-rpcv2-cbor/package.json index e3d345930a29..d50cf3b028a2 100644 --- a/private/aws-protocoltests-smithy-rpcv2-cbor/package.json +++ b/private/aws-protocoltests-smithy-rpcv2-cbor/package.json @@ -10,8 +10,8 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0", - "test": "vitest run", - "test:watch": "vitest watch" + "test": "yarn g:vitest run", + "test:watch": "yarn g:vitest watch" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-restjson-server/package.json b/private/aws-restjson-server/package.json index a44672de285e..7b96dc27260b 100644 --- a/private/aws-restjson-server/package.json +++ b/private/aws-restjson-server/package.json @@ -11,7 +11,7 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "prepack": "yarn run clean && yarn run build", - "test": "vitest run" + "test": "yarn g:vitest run" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-restjson-validation-server/package.json b/private/aws-restjson-validation-server/package.json index 4cd83154c8e4..24009c12e20f 100644 --- a/private/aws-restjson-validation-server/package.json +++ b/private/aws-restjson-validation-server/package.json @@ -11,7 +11,7 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "prepack": "yarn run clean && yarn run build", - "test": "vitest run" + "test": "yarn g:vitest run" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/aws-util-test/package.json b/private/aws-util-test/package.json index 8188ad8b886c..0221d2b41cf4 100644 --- a/private/aws-util-test/package.json +++ b/private/aws-util-test/package.json @@ -10,8 +10,8 @@ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "prepack": "yarn run clean && yarn run build", - "test:integration": "vitest run -c vitest.config.integ.js", - "test:integration:watch": "vitest watch -c vitest.config.integ.js" + "test:integration": "yarn g:vitest run -c vitest.config.integ.js", + "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.js" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/private/weather/package.json b/private/weather/package.json index c29971865790..29dc850a6f76 100644 --- a/private/weather/package.json +++ b/private/weather/package.json @@ -10,7 +10,7 @@ "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "vitest run --passWithNoTests" + "test": "yarn g:vitest run --passWithNoTests" }, "main": "./dist-cjs/index.js", "types": "./dist-types/index.d.ts", diff --git a/scripts/validation/vitest-validation.js b/scripts/validation/vitest-validation.js index c144ec447d87..3e5797354cbd 100644 --- a/scripts/validation/vitest-validation.js +++ b/scripts/validation/vitest-validation.js @@ -125,8 +125,8 @@ const paths = [ ) { console.log("setting unit test to vitest"); - pkgJson.scripts.test = "vitest run"; - pkgJson.scripts["test:watch"] = "vitest watch"; + pkgJson.scripts.test = "yarn g:vitest run"; + pkgJson.scripts["test:watch"] = "yarn g:vitest watch"; fs.writeFileSync( path.join(folder, `vitest.config.${configExtension}`), `import { defineConfig } from "vitest/config"; @@ -142,7 +142,7 @@ const paths = [ ` ); } else if (pkgJson.scripts.test.includes("vitest")) { - pkgJson.scripts["test:watch"] ??= "vitest watch --passWithNoTests"; + pkgJson.scripts["test:watch"] ??= "yarn g:vitest watch --passWithNoTests"; } } @@ -152,13 +152,15 @@ const paths = [ fs.rmSync(path.join(folder, `jest.config.${testType}.js`)); } if (pkgJson.scripts[`test:${script}`]) { - pkgJson.scripts[`test:${script}:watch`] = `vitest watch -c vitest.config.${testType}.${configExtension}`; + pkgJson.scripts[ + `test:${script}:watch` + ] = `npx yarn g:vitest watch -c vitest.config.${testType}.${configExtension}`; if ( pkgJson.scripts[`test:${script}`].includes("jest") || pkgJson.scripts[`test:${script}`].includes("vitest") ) { console.log(`setting ${testType} test to vitest`); - pkgJson.scripts[`test:${script}`] = `vitest run -c vitest.config.${testType}.${configExtension}`; + pkgJson.scripts[`test:${script}`] = `yarn g:vitest run -c vitest.config.${testType}.${configExtension}`; fs.writeFileSync( path.join(folder, `vitest.config.${testType}.${configExtension}`), `import { defineConfig } from "vitest/config";