OpenSlides / OpenSlides/openslides-client
Replace `karma` test runner with `vitest`
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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