Skip to content

Conversation

@jeremymeng
Copy link
Member

@jeremymeng jeremymeng commented Oct 28, 2025

  • bump version to v4 and add @vitest/browser-playwright to dev deps per reference: https://github.com/vitest-dev/vitest/blob/main/docs/guide/migration.md

  • root tsconfig.browser.config.json workaround: need NodeJS types for browser typechecking because today

    • some of our packages have mix NodeJS/browser usage in same file
    • typeScript NodeNext module resolution uses ESM flavor of our built .d.ts files which may contain pattern of import { ... } from "node:xxx";
    • our build-test doesn't do platform file substitution yet, so ESM code files are included in the build.

    vitest v3 pulls in NodeJS types implicitly so it works now but it is no longer the same in vitest v4.

  • test-utils: remove unused multi version testing support

replace @vitest/browser with @vitest/browser-playwright
we only ever import and use them as types.
…onfig.json

- dev-tool: apply strip-json-comments to tsconfig file contents before parsing. Usually tsconfig.json files allow comments.
because today

- Some of our packages have mix NodeJS/browser usage in same file
- TypeScript `NodeNext` module resolution uses ESM version of built .d.ts files
  which may contain pattern of `import { ... } from "node:xxx";`
- Our build-test doesn't do platform file substitution yet so ESM version of
  files are included in the build.

Vitest v3 pulls in NodeJS types implicitly but it is no longer the case in
vitest v4.
@github-actions
Copy link

github-actions bot commented Oct 28, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

@azure/arm-weightsandbiases
@azure/storage-internal-avro

@jeremymeng
Copy link
Member Author

/check-enforcer override

@jeremymeng jeremymeng merged commit 9788e44 into main Nov 6, 2025
209 of 227 checks passed
@jeremymeng jeremymeng deleted the engsys/vitest-v4 branch November 6, 2025 03:02
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Azure Identity SDK Improvements Nov 6, 2025
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Azure SDK for Key Vault Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants