Skip to content

refactor: migrate testing framework from Jest to Vitest#336

Open
amarant wants to merge 6 commits intomainfrom
migrate-jest-to-vitest
Open

refactor: migrate testing framework from Jest to Vitest#336
amarant wants to merge 6 commits intomainfrom
migrate-jest-to-vitest

Conversation

@amarant
Copy link
Contributor

@amarant amarant commented Feb 17, 2026

  • Updated test scripts in package.json to use Vitest instead of Jest.
  • Removed Jest-related dependencies and added Vitest and its plugins.
  • Deleted svgTransform.ts as it is no longer needed.
  • Updated tsconfig.json to remove references to Jest and svgTransform.ts.
  • Added vitest.config.ts for Vitest configuration, including coverage settings.

the goal is to be able to use browser test with playwright, be 5x faster, and no longer have babel dependencies

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • A PR or issue has been opened in all impacted repositories (if any)

What kind of change does this PR introduce?

Jest -> Vitest

What is the current behavior?

test are runned in Jest

What is the new behavior (if this is a feature change)?
test are runned in Vitest

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

…for module resolution

remove prettier glsl remains

to validate do :
git clean -dfx
npm ci
npx tsc -p packages/network-map-layers/tsconfig.json --noEmit
npx tsc -p packages/network-viewer-core/tsconfig.json --noEmit
npx tsc -p demo/tsconfig.json --noEmit
npm run check
npm run lint
npm run lint:format
npm start

Signed-off-by: Arnaud Marant <[email protected]>
- Updated test scripts in package.json to use Vitest instead of Jest.
- Removed Jest-related dependencies and added Vitest and its plugins.
- Deleted svgTransform.ts as it is no longer needed.
- Updated tsconfig.json to remove references to Jest and svgTransform.ts.
- Added vitest.config.ts for Vitest configuration, including coverage settings.

Signed-off-by: Arnaud Marant <[email protected]>
Base automatically changed from check-on-checkout to main February 18, 2026 10:37
@amarant amarant requested a review from rolnico February 19, 2026 10:23
@sBouzols
Copy link
Contributor

Jest :
image
Vitest :
image

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants