Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Replace Jest with Vitest#1472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mikepenz merged 4 commits intodevelopfromfeature/vitest
Aug 16, 2025
Merged

Replace Jest with Vitest#1472

mikepenz merged 4 commits intodevelopfromfeature/vitest
Aug 16, 2025

Conversation

@mikepenz
Copy link
Owner

This pull request updates all test files to use thevitest testing framework instead ofjest. The changes ensure consistency across the test suite and remove unnecessary timeout settings. The most important changes are grouped below:

Test framework migration:

Test style and cleanup:

  • Removed unnecessaryjest.setTimeout calls from all test files, asvitest handles timeouts differently. (All references above)
  • Updated test function names fromit totest for consistency withvitest conventions. (All references above)
  • Minor formatting fixes for code style and consistency, such as quote usage and whitespace. (__tests__/main.test.ts[1][2]

These changes modernize the test suite and make it compatible with thevitest framework, improving maintainability and consistency.

 @eslint/js                         ^9.31.0  →  ^9.33.0 @types/node                       ^24.0.13  →  ^24.3.0 @typescript-eslint/eslint-plugin   ^8.36.0  →  ^8.39.1 @typescript-eslint/parser          ^8.36.0  →  ^8.39.1 eslint                             ^9.31.0  →  ^9.33.0 eslint-plugin-prettier              ^5.5.1  →   ^5.5.4 jest                               ^30.0.4  →  ^30.0.5 jest-circus                        ^30.0.4  →  ^30.0.5 ts-jest                            ^29.4.0  →  ^29.4.1 typescript                          ^5.8.3  →   ^5.9.2 ```
@github-actions
Copy link

github-actionsbot commentedAug 16, 2025
edited
Loading

TestsPassed ✅SkippedFailed
JUnit Test Report66 ran66 passed0 skipped0 failed
TestResult
No test annotations available

Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request migrates the test framework from Jest to Vitest across the entire test suite. The change modernizes the testing infrastructure by replacing Jest-specific imports and configurations with Vitest equivalents.

Key changes include:

  • Replaced all Jest imports with Vitest in test files, updating to useexpect andtest from Vitest
  • Removed Jest timeout configurations (jest.setTimeout) since Vitest handles timeouts differently
  • Updated package.json to use Vitest commands and dependencies instead of Jest

Reviewed Changes

Copilot reviewed 14 out of 17 changed files in this pull request and generated 6 comments.

FileDescription
package.jsonUpdated test scripts to use Vitest, replaced Jest dependencies with Vitest, and updated other dev dependencies
eslint.config.mjsRemoved Jest ESLint plugin and Jest globals configuration
All test filesReplaced Jest imports with Vitest, removed timeout configurations, and updated test function syntax

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

@mikepenzmikepenz merged commit47f1220 intodevelopAug 16, 2025
7 checks passed
@mikepenzmikepenz deleted the feature/vitest branchAugust 16, 2025 12:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mikepenz

[8]ページ先頭

©2009-2025 Movatter.jp