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 tests from karma + jasmine to jest (or vitest) and get rid of webpack #905

Open
st3iny opened this issue Jun 10, 2024 · 0 comments
Labels
enhancement New feature or request low Low priority technical debt

Comments

@st3iny
Copy link
Member

st3iny commented Jun 10, 2024

Is your feature request related to a problem? Please describe.

The tests currently require to be transpiled by webpack in order to run. We could drop webpack entirely if we migrate tests.

Describe the solution you'd like

Migrate test from karma + jasmine to jest (or vitest).

Describe alternatives you've considered

Leave the tests untouched. Webpack isn't going anywhere soon and tests aren't shipped anyway so we don't run into vulnerabilities regarding unmaintained test frameworks.

Additional context

There is an automatic test code migration tool for jest. I tried it and it works quite good. However, it fails to convert some of the mocks which need to be migrated manually.

Once we are on jest it is trivial to migrate to vitest.

npx jest-codemods

@st3iny st3iny added enhancement New feature or request low Low priority technical debt labels Jun 10, 2024
@st3iny st3iny changed the title Migrate test from karma + jasmine to jest (or vitest) and get rid of webpack Migrate tests from karma + jasmine to jest (or vitest) and get rid of webpack Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low Low priority technical debt
Projects
None yet
Development

No branches or pull requests

1 participant