Skip to content

docs: update vitest docs - #226

Merged
raymondk merged 1 commit into
dfinity:mainfrom
nathanosdev:nathan/update-vitest-docs
Jan 10, 2026
Merged

docs: update vitest docs#226
raymondk merged 1 commit into
dfinity:mainfrom
nathanosdev:nathan/update-vitest-docs

Conversation

@nathanosdev

Copy link
Copy Markdown
Contributor

Update vitest docs to use new types

Copilot AI review requested due to automatic review settings January 10, 2026 16:43
@nathanosdev
nathanosdev requested a review from a team as a code owner January 10, 2026 16:43
@cla-idx-bot

cla-idx-bot Bot commented Jan 10, 2026

Copy link
Copy Markdown

Dear @nathanosdev,

In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA.

If you decide to agree with it, please visit this issue and read the instructions there. Once you have signed it, re-trigger the workflow on this PR to see if your code can be merged.

— The DFINITY Foundation

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Vitest documentation to reflect API changes in the Vitest testing framework, specifically updating type imports and parameter names from the deprecated GlobalSetupContext to the new TestProject type.

Changes:

  • Added "vitest" to the types array in tsconfig.json for proper TypeScript support
  • Updated import statement from GlobalSetupContext to TestProject in the global setup file
  • Changed parameter name from ctx to project throughout the setup function and related comments

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raymondk
raymondk enabled auto-merge January 10, 2026 16:48
@raymondk
raymondk added this pull request to the merge queue Jan 10, 2026
Merged via the queue into dfinity:main with commit ede83d7 Jan 10, 2026
23 of 25 checks passed
@nathanosdev
nathanosdev deleted the nathan/update-vitest-docs branch January 10, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants