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

chore: improve unit tests feedback loop by making them asynchronous #344

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

ricardogobbosouza
Copy link
Collaborator

@ricardogobbosouza ricardogobbosouza commented Jan 25, 2024

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

I'm working on #342 and when a test failed, it had to time out to display the error.
Using async/await makes it so that when a test fails, the error is printed immediately.

This reduces the feedback loop and makes it easier to make changes.

The downside is that it hides the webpack API behind an indirection layer.
I'll let you judge if this is something you want to have or not.

Breaking Changes

N/A

Additional Info

N/A

Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e0d70bb) 100.00% compared to head (370b71b) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #344   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          256       256           
  Branches        50        50           
=========================================
  Hits           256       256           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ricardogobbosouza ricardogobbosouza merged commit fdb0ab2 into master Jan 26, 2024
41 checks passed
@ricardogobbosouza ricardogobbosouza deleted the chore-async-tests branch January 26, 2024 12:09
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.

None yet

2 participants