Skip to content

chore(unit tests): from jest to vitest - #740

Open
Kurtil wants to merge 2 commits into
developfrom
chore/fromJestToVitest
Open

Kurtil wants to merge 2 commits into
developfrom
chore/fromJestToVitest

Conversation

@Kurtil

@Kurtil Kurtil commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

https://platform-dev-fromjesttovitest.bimdata.io

Description

Types of changes

  • Bug fix (non-breaking change which fixes an issue) DON'T FORGET TO SEND THE PR INTO RELEASE
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • My code follows the code style of this project.
  • I have tested my code.
  • My code add or change i18n tokens
  • I want to run the tests for the commits of this PR

@Kurtil
Kurtil requested a balanced review from Copilot October 28, 2026 08:35
@Kurtil Kurtil self-assigned this Oct 28, 2026
@Kurtil Kurtil added the dependencies Pull requests that update a dependency file label Oct 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the Jest-to-Vitest migration.

No open issues 🎉

What changed in this PR

Migrates the unit-test runner from Jest to Vitest while retaining the existing test setup file.

Changes:

  • Configures Vitest to run unit specs with global test APIs.
  • Updates the test command and dependencies, including pinning Vite to 8.3.2.
  • Removes Jest, Babel, and Browserslist configuration and updates Docker exclusions.
File Description
vitest.config.js Adds unit-test discovery, globals, and setup configuration.
package.json Switches to Vitest, removes Jest/Babel dependencies, and pins Vite.
jest.config.js Removes the Jest configuration.
babel.config.cjs Removes the Babel preset configuration.
.dockerignore Excludes Vitest configuration instead of Jest configuration.
.browserslistrc Removes browser-target configuration.

Review effort: Balanced

@Kurtil
Kurtil requested a review from Amoki October 28, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants