Skip to content

fix(testing): throw error when async func is passed to describe #5385

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

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jul 10, 2024

closes #5034

This PR updates the behavior of describe in testing/bdd. Now describe throws if an async function is passed to it.

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.34%. Comparing base (3209065) to head (e3ca7f2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5385   +/-   ##
=======================================
  Coverage   96.34%   96.34%           
=======================================
  Files         458      458           
  Lines       37757    37762    +5     
  Branches     5576     5577    +1     
=======================================
+ Hits        36376    36381    +5     
  Misses       1338     1338           
  Partials       43       43           

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

Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@kt3k kt3k merged commit faa633b into denoland:main Jul 11, 2024
13 checks passed
@kt3k kt3k deleted the fix-async-describe branch July 11, 2024 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

describe should throw if passed a function that returns a promise
2 participants