angular icon indicating copy to clipboard operation
angular copied to clipboard

Configure TypeScript for Vitest testing globals

Open Klerith opened this issue 1 month ago • 2 comments

Updated TypeScript configuration to use Vitest globals for testing, allowing usage of testing functions without imports.

PR Checklist

Please check if your PR fulfills the following requirements:

  • [ x] The commit message follows our guidelines: https://github.com/angular/angular/blob/main/contributing-docs/commit-message-guidelines.md
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [ x] Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • [ ] Bugfix
  • [ ] Feature
  • [ ] Code style update (formatting, local variables)
  • [ ] Refactoring (no functional changes, no api changes)
  • [ ] Build related changes
  • [ ] CI related changes
  • [x ] Documentation content changes
  • [ ] angular.dev application / infrastructure changes
  • [ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Users reading the migration documentation from Karma Jasmine to Vitest will have the global definitions instead of importing them manually.

Does this PR introduce a breaking change?

  • [ ] Yes
  • [ x] No

Other information

Klerith avatar Dec 01 '25 15:12 Klerith

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Dec 01 '25 15:12 google-cla[bot]

Hi, Could you please sign the CLA (using the email associated with your GitHub account) and amend your commit to follow the commit guidelines

It should look something like this:

docs: Configure TypeScript for Vitest testing globals

SkyZeroZx avatar Dec 01 '25 15:12 SkyZeroZx