Skip to content

Migrate the 20 organization and working-capital specs from Karma to Vitest #407

Closed

Description

@Aman-Mittal

Part of #403. Good first issue — 10 specs in each of two areas, all mechanical.

What to do

src/app/features/organization/ (10) and src/app/features/working-capital/ (10) still run on the deprecated Karma runner. One PR or two — say which you are taking in a comment.

node scripts/codemod-jasmine-to-vitest.mjs $(node -p "require('./karma-baseline.json').specs.filter(f=>/^src\/app\/features\/(organization|working-capital)\//.test(f)).join(' ')")
npm run test:unit
node scripts/check-test-runner.mjs --write
npm run lint:prune && npm run format
npm test -- --watch=false

All 20 convert cleanly — the codemod reports 0 left for a human for both areas.

Acceptance criteria

  • No .spec.ts files remain under the area(s) you took
  • npm run test:unit and npm test -- --watch=false both pass
  • Karma total + Vitest total unchanged — quote both in the PR
  • karma-baseline.json updated in the same commit
  • npm run lint and npm run format:check clean

Things that trip people up

  • Run npm run lint:prune after the rename — eslint-suppressions.json is keyed by path.
  • Some working-capital specs were migrated already, so expect a mix of .test.ts and .spec.ts in that folder. Only the .spec.ts files are in scope; the baseline is the authority on which remain.
  • Migrate as-is; open a separate issue for anything that looks wrong.

Background: DOCS/adr/0004-vitest-migration.md.

Activity

  1. zhangxinyao88 commented on Aug 23, 2026

    @zhangxinyao88
    Contributor

    Hi, I'd like to work on this issue. I'll migrate both the organization and working-capital specs to Vitest.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions