Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1c0630e
[ci-runner] upgrade dev dep `vitest` to v4
jeremymeng Oct 24, 2025
d362ebf
- update pnpm-workspace.yaml to have vitest v4
jeremymeng Oct 24, 2025
f1c5e32
- turborepo-remote-cache: upgrade vitest to v4
jeremymeng Oct 24, 2025
4db8a4a
- eslint-plugin: remove @vitest/browser as it doesn't test browsers
jeremymeng Oct 24, 2025
33b209b
- test-utils: remove unused multi version testing support
jeremymeng Oct 24, 2025
372acfc
- packages: add @vitest/browser-playwright to dev deps
jeremymeng Oct 24, 2025
8e528e8
- service-bus: fix export of Delivery and WebSocketImpl
jeremymeng Oct 24, 2025
7de0491
- event-hubs: export WebSocketImpl as type
jeremymeng Oct 24, 2025
9bcc6da
- core-rest-pipeline: add Node types workaround to tsconfig.browser.c…
jeremymeng Oct 27, 2025
cc98c8f
Merge remote-tracking branch 'upstream/main' into engsys/vitest-v4
jeremymeng Oct 27, 2025
2570d1d
Workaround: need NodeJS types for browser typechecking
jeremymeng Oct 28, 2025
0a7913f
Merge remote-tracking branch 'upstream/main' into engsys/vitest-v4
jeremymeng Oct 28, 2025
469c215
- playwright: fix tests
jeremymeng Oct 29, 2025
ac59ad5
- keyvault: workaround
jeremymeng Oct 29, 2025
a981f6d
upgrade to vitest ^4.0.6
jeremymeng Nov 3, 2025
fa47a94
Merge remote-tracking branch 'upstream/main' into engsys/vitest-v4
jeremymeng Nov 3, 2025
51b0b4c
- monitor-opentelemetry: fix linting issue
jeremymeng Nov 3, 2025
76f3d84
Revert "- keyvault: workaround"
jeremymeng Nov 3, 2025
1a646b6
Revert "- event-hubs: export WebSocketImpl as type"
jeremymeng Nov 3, 2025
64d1bda
Revert "- service-bus: fix export of Delivery and WebSocketImpl"
jeremymeng Nov 3, 2025
39a2826
- mgmt multiple: fix merging issue
jeremymeng Nov 3, 2025
5f343a1
- communication-call-automation: fix typescript build error
jeremymeng Nov 5, 2025
f1f5717
- event-hubs: fix build error
jeremymeng Nov 5, 2025
337831e
- monitor-opentelemetry-exporter: fix build error. adjust delay waiti…
jeremymeng Nov 5, 2025
a4591e8
- microsoft-playwright-testing: reset mock to adapt to vitest v4 chan…
jeremymeng Nov 5, 2025
709eb0c
fix formatting
jeremymeng Nov 5, 2025
b244209
- test-utils recorder: fix build error
jeremymeng Nov 5, 2025
ab63e98
Merge remote-tracking branch 'upstream/main' into engsys/vitest-v4
jeremymeng Nov 5, 2025
f00424f
- monitor-opentelemetry sample-dev: update vitest version
jeremymeng Nov 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 7 additions & 3 deletions common/tools/dev-tool/src/util/resolveTsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

import path from "node:path";
import fs from "node:fs/promises";
import stripJsonComments from "strip-json-comments";

import type { CompilerOptions } from "typescript";

export type Config = {
Expand Down Expand Up @@ -38,9 +40,11 @@ export async function resolveConfig(configPath: string): Promise<Config> {
const absolutePath = path.resolve(configPath);
const configDir = path.dirname(absolutePath);
const rawConfig = JSON.parse(
await fs.readFile(
!absolutePath.toLowerCase().endsWith(".json") ? `${absolutePath}.json` : absolutePath,
"utf8",
stripJsonComments(
await fs.readFile(
!absolutePath.toLowerCase().endsWith(".json") ? `${absolutePath}.json` : absolutePath,
"utf8",
),
),
);

Expand Down
1 change: 0 additions & 1 deletion common/tools/eslint-plugin-azure-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
"@typescript-eslint/parser": "~8.43.0",
"@typescript-eslint/rule-tester": "~8.43.0",
"@typescript-eslint/utils": "~8.43.0",
"@vitest/browser": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"eslint": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions eng/containers/turborepo-remote-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
"devDependencies": {
"@eslint/js": "^9.24.0",
"@types/node": "^20.0.0",
"@vitest/coverage-istanbul": "^3.1.1",
"@vitest/coverage-istanbul": "^4.0.0",
"eslint": "^9.9.0",
"pino-pretty": "^13.1.1",
"prettier": "catalog:",
"rimraf": "catalog:",
"tsx": "^4.17.0",
"typescript": "~5.8.2",
"typescript-eslint": "~8.43.0",
"vitest": "^3.0.9"
"vitest": "^4.0.0"
},
"scripts": {
"build": "tsc",
Expand Down
4,088 changes: 1,956 additions & 2,132 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ catalogs:
'@rollup/plugin-inject': ^5.0.5
'@types/chai': ^5.2.1
'@types/chai-as-promised': ^8.0.2
'@vitest/browser': ^3.2.3
'@vitest/coverage-istanbul': ^3.2.3
'@vitest/expect': ^3.2.3
'@vitest/coverage-istanbul': ^4.0.6
'@vitest/browser-playwright': ^4.0.0
'@vitest/expect': ^4.0.6
chai: ^6.2.0
chai-as-promised: ^8.0.1
chai-exclude: ^3.0.0
dotenv: ^16.0.0
nock: ^13.5.4
playwright: ^1.50.1
vitest: ^3.2.3
vitest: ^4.0.6

linkWorkspacePackages: true

Expand Down
2 changes: 1 addition & 1 deletion sdk/advisor/arm-advisor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@azure/eslint-plugin-azure-sdk": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/agrifood/agrifood-farming-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@azure/eslint-plugin-azure-sdk": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
1 change: 1 addition & 0 deletions sdk/agrifood/arm-agrifood/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"rimraf": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/ai-agents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@opentelemetry/instrumentation": "0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/ai-inference-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"@opentelemetry/instrumentation": "^0.200.0",
"@opentelemetry/sdk-trace-node": "^2.0.0",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"autorest": "catalog:",
"cross-env": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/ai-projects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@opentelemetry/instrumentation": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^2.0.0",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
1 change: 1 addition & 0 deletions sdk/analysisservices/arm-analysisservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"rimraf": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@azure/eslint-plugin-azure-sdk": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"autorest": "catalog:",
"cross-env": "catalog:",
Expand Down
1 change: 1 addition & 0 deletions sdk/apicenter/arm-apicenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/eslint-plugin-azure-sdk": "workspace:^",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"eslint": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion sdk/apimanagement/arm-apimanagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/appconfiguration/app-configuration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@azure/keyvault-secrets": "^4.2.0",
"@microsoft/feature-management": "^2.2.0",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/appconfiguration/arm-appconfiguration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
42 changes: 21 additions & 21 deletions sdk/appcontainers/arm-appcontainers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"node": ">=20.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.6.2",
"@azure/core-client": "^1.9.3",
"@azure/core-auth": "^1.9.0",
"@azure/core-client": "^1.9.3",
"@azure/core-lro": "^2.5.4",
"@azure/core-paging": "^1.6.2",
"@azure/core-rest-pipeline": "^1.19.1",
"tslib": "^2.8.1"
},
Expand All @@ -30,23 +30,23 @@
"types": "./dist/commonjs/index.d.ts",
"type": "module",
"devDependencies": {
"typescript": "catalog:",
"rimraf": "catalog:",
"dotenv": "catalog:testing",
"@azure-tools/test-credential": "workspace:^",
"@azure-tools/test-recorder": "workspace:^",
"@azure-tools/test-utils-vitest": "workspace:^",
"@azure/dev-tool": "workspace:^",
"cross-env": "catalog:",
"eslint": "catalog:",
"prettier": "catalog:",
"tshy": "catalog:",
"@azure/identity": "catalog:internal",
"@azure/logger": "workspace:^",
"@azure-tools/test-recorder": "workspace:^",
"@azure-tools/test-credential": "workspace:^",
"@azure-tools/test-utils-vitest": "workspace:^",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
"eslint": "catalog:",
"playwright": "catalog:testing",
"prettier": "catalog:",
"rimraf": "catalog:",
"tshy": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:testing"
},
"repository": "github:Azure/azure-sdk-for-js",
Expand All @@ -60,19 +60,19 @@
],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"pack": "pnpm pack 2>&1",
"extract-api": "dev-tool run extract-api",
"lint": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:samples": "echo skipped.",
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "echo skipped",
"extract-api": "dev-tool run extract-api",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
"lint": "echo skipped",
"pack": "pnpm pack 2>&1",
"test": "npm run test:node && npm run test:browser",
"test:node": "dev-tool run test:vitest",
"test:browser": "echo skipped",
"update-snippets": "dev-tool run update-snippets",
"test:node:esm": "dev-tool run test:vitest --esm"
"test:node": "dev-tool run test:vitest",
"test:node:esm": "dev-tool run test:vitest --esm",
"update-snippets": "dev-tool run update-snippets"
},
"sideEffects": false,
"//metadata": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/applicationinsights/arm-appinsights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@azure/dev-tool": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/appservice/arm-appservice-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@azure/eslint-plugin-azure-sdk": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"autorest": "catalog:",
"cross-env": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion sdk/appservice/arm-appservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/astro/arm-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/attestation/arm-attestation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"playwright": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/attestation/attestation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"@azure/eslint-plugin-azure-sdk": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"buffer": "^6.0.0",
"cross-env": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/authorization/arm-authorization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/automanage/arm-automanage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/automation/arm-automation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
2 changes: 1 addition & 1 deletion sdk/avs/arm-avs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"@azure/eslint-plugin-azure-sdk": "workspace:^",
"@azure/identity": "catalog:internal",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"dotenv": "catalog:testing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@azure/identity": "catalog:internal",
"@azure/logger": "^1.1.4",
"@types/node": "catalog:",
"@vitest/browser": "catalog:testing",
"@vitest/browser-playwright": "catalog:testing",
"@vitest/coverage-istanbul": "catalog:testing",
"cross-env": "catalog:",
"playwright": "catalog:testing",
Expand Down
Loading
Loading