chore(frontend): remove deprecated Karma/Jasmine/Protractor testing stack#180
chore(frontend): remove deprecated Karma/Jasmine/Protractor testing stack#180Prateekbala wants to merge 5 commits intokserve:masterfrom
Conversation
f547974 to
cb51d2f
Compare
There was a problem hiding this comment.
Pull request overview
This PR removes the deprecated Angular Karma/Jasmine and Protractor testing setup from the frontend and standardizes the project on Jest (unit tests) and Cypress (end-to-end tests).
Changes:
- Removed Karma and Protractor configuration/files (including Angular CLI
test/e2etargets). - Updated frontend scripts and dependencies to use Jest and Cypress exclusively.
- Updated unit-test scaffolding/types and refreshed testing documentation.
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/tsconfig.spec.json | Removes Jasmine types and Karma’s src/test.ts entry; keeps Jest/node types. |
| frontend/TEST.md | Rewrites testing guide to reflect Jest + Cypress only. |
| frontend/src/test.ts | Deletes Karma bootstrap file. |
| frontend/src/app/shared/namespace-select/namespace-select.component.spec.ts | Replaces Jasmine spies with Jest mocks. |
| frontend/package.json | Switches test/test:prod to Jest; removes Jasmine/Karma/Protractor dependencies; maps e2e to Cypress CI flow. |
| frontend/package-lock.json | Removes top-level deprecated deps but still contains optional peer-installed Protractor/Karma entries. |
| frontend/karma.conf.js | Deletes Karma configuration. |
| frontend/e2e/tsconfig.json | Deletes Protractor e2e TypeScript config. |
| frontend/e2e/src/app.po.ts | Deletes Protractor page object. |
| frontend/e2e/src/app.e2e-spec.ts | Deletes Protractor e2e spec. |
| frontend/e2e/protractor.conf.js | Deletes Protractor configuration. |
| frontend/angular.json | Removes Angular CLI test (Karma) and e2e (Protractor) targets. |
Files not reviewed (1)
- frontend/package-lock.json: Language not supported
|
Resolved the copilot reviews. |
There was a problem hiding this comment.
why two different naming of files 'jest.spec.ts', and 'spec.ts', i think this is inconsistency
@juliusvonkohout @Prateekbala @LogicalGuy77
|
Hello @juliusvonkohout , 1.
|
30457b1 to
7f7edd1
Compare
Signed-off-by: Prateek Bala <prateekbala28@gmail.com>
Signed-off-by: Prateek Bala <prateekbala28@gmail.com>
Signed-off-by: Prateek Bala <prateekbala28@gmail.com>
Signed-off-by: Prateek Bala <prateekbala28@gmail.com>
f7ac238 to
e5880d9
Compare
|
hi, thanks for the changes @Prateekbala . Can you run the new CI on your fork and see that all tests pass before we merge this? |
Signed-off-by: Prateek Bala <prateekbala28@gmail.com>
754296e to
b41a4ca
Compare
@LogicalGuy77 , This PR only modifies frontend Jest unit tests and configuration—all Jest tests pass locally (27 suites, 107 tests), and the changes don't affect any other workflows.
|

Summary
Removes deprecated Karma/Jasmine/Protractor testing stack and completes migration to Jest for unit tests.
Changes
*.spec.tsconventionKey Files Modified
package.json- Removed deprecated test dependenciesjest.config.js- Simplified test pattern matchingtsconfig.spec.json- Added path mapping for mocksTEST.md- Updated documentation*.jest.spec.tsto*.spec.tsTesting
npm run format:checknpm run lint-checknpm run test:prodImpact
Closes #180