Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Karma to jasmine-browser-runner #13423

Closed
1 task done
alexgibson opened this issue Jul 20, 2023 · 0 comments · Fixed by #13765
Closed
1 task done

Migrate from Karma to jasmine-browser-runner #13423

alexgibson opened this issue Jul 20, 2023 · 0 comments · Fixed by #13765
Assignees
Labels
Frontend HTML, CSS, JS... client side stuff

Comments

@alexgibson
Copy link
Member

alexgibson commented Jul 20, 2023

Description

Both Karma and Karma Runner are now deprecated: karma-runner/karma-jasmine#334

"For browser-based unit testing solutions, karma recommends Web Test Runner and jasmine-browser-runner."

It's probably worth us trying to migrate to jasmine-browser-runner, since our tests are already written using Jamsine.

https://jasmine.github.io/setup/browser.html

There's a tutorial here that is mainly React focused, however it includes an example of writing a webpack config to first compile tests before running them: https://jasmine.github.io/tutorials/react_with_browser

If things don't work out, then Web Test Runner is another option.


Success Criteria

  • Front-end tests are migrated from Karma to jasmine-browser-runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend HTML, CSS, JS... client side stuff
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants