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

Replace Karma (Deprecated) as the JS Test Runner #4411

Open
1 task done
gaiety-deque opened this issue Apr 16, 2024 · 1 comment
Open
1 task done

Replace Karma (Deprecated) as the JS Test Runner #4411

gaiety-deque opened this issue Apr 16, 2024 · 1 comment
Labels
ungroomed Ticket needs a maintainer to prioritize and label

Comments

@gaiety-deque
Copy link
Contributor

Product

axe-core

Product Version

4.9.0

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

Test runner operates on a reasonably standard library that is well maintained and documented. Likely mocha, as that is what is used for other tests.

Actual

axe-core test running operates on a deprecated framework called Karma

Karma is deprecated and is not accepting new features or general bug fixes.

How to Reproduce

npm run test:unit or any of it's sibling scripts, a browser appears running karma.

Additional context

This is very likely not a security concern, as far as I can see we never import Karma in such a way to introduce a problem and it's only used to run tests.

@gaiety-deque gaiety-deque added the ungroomed Ticket needs a maintainer to prioritize and label label Apr 16, 2024
@gaiety-deque
Copy link
Contributor Author

I spent some creative time playing with replacing Karma with straight-up Mocha (reading their "run in the browser" docs), Web Test Runner, and Playwright but kept running into issues. May revisit this another time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ungroomed Ticket needs a maintainer to prioritize and label
Projects
None yet
Development

No branches or pull requests

1 participant