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 test from mocha to jest #58

Merged
merged 4 commits into from Jul 8, 2022
Merged

Migrate test from mocha to jest #58

merged 4 commits into from Jul 8, 2022

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Jul 5, 2022

While reviewing #56, I thought about adding a test case. But mocking imports in mocha seems impossible without extra dependencies, so I did a quick migration to Jest.

Using Jest enables easy mocking and allows us to add more complex tests in the future.

The last commit makes use of Jest and adds some tests for getRelease

@dbanck dbanck added the enhancement New feature or request label Jul 5, 2022
@dbanck dbanck requested a review from a team July 5, 2022 12:41
@dbanck dbanck self-assigned this Jul 5, 2022
@dbanck dbanck merged commit de94375 into main Jul 8, 2022
@dbanck dbanck deleted the migrate-to-jest branch July 8, 2022 08:54
@dbanck dbanck added this to the 1.6.1 milestone Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants