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

refactor: migrate tests to jest #162

Merged
merged 9 commits into from
Mar 10, 2024
Merged

refactor: migrate tests to jest #162

merged 9 commits into from
Mar 10, 2024

Conversation

ComradeVanti
Copy link
Collaborator

This PR migrates the tests from mocha to jest. The main reasons for this are:

  • Popularity of jest
  • Jest has very nice builtin mock support

Important notes for this PR:

  • Removes the test:quick script. Was not really used anyway and is not possible as easily with jest.
  • Explicitly run tests sequentially using --runInBand. Jest usually runs tests in parallel to some extent but this caused race conditions due to shared test-openupm-cli directory.

@ComradeVanti
Copy link
Collaborator Author

Another note: This PR does not yet switch from should to jests builtin assertion library, but I would also like to do that in a future PR.

@favoyang favoyang merged commit 45230bd into openupm:master Mar 10, 2024
2 checks passed
@ComradeVanti ComradeVanti deleted the jest branch March 10, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants