OpenSlides / OpenSlides/openslides-client

Replace `karma` test runner with `vitest`

Open
#6,398 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependencies
Dominant language
TypeScript
Stars
35
Forks
52
Avg merge
1d 9h
Merged PRs (30d)
52

Description

Follow up to #6280.

Our test framework should be migrated to vitest. There is a schematic in place to do most of the necessary things automatically: npx ng g @schematics/angular:refactor-jasmine-vitest
However - there are about 40 places that need manual intervention. Keep in mind that those are not trivial and identical code sometimes needs per test specific solutions.

Details can be found here: https://angular.dev/guide/testing/migrating-to-vitest

While at it https://github.com/OpenSlides/openslides-client/issues/3423 should be fixed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Angular testing migration guide and run npx ng g @schematics/angular:refactor-jasmine-vitest to identify the remaining manual work. Review each of the roughly 40 interventions for test-specific solutions, and check issue #3423; done means the test framework is migrated to Vitest and that issue is fixed.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend, testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.