Skip to content

Fix more tests missing 'it' call in 'describe' - #48994

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:more-describe-it-oops
May 6, 2022
Merged

Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:more-describe-it-oops

Conversation

@jakebailey

Copy link
Copy Markdown
Member

I found more of these while debugging the parser. describe calls need to have an it call in them, otherwise all of that code runs before the tests are filtered, e.g. when debugging or running a single test, which is super annoying.

I tried adding --fail-zero to our mocha thing, but it doesn't seem to catch this because it was only designed to catch when you accidentally remove every test, not when a "suite" is missing any tests. Feels like this is worth a lint rule.

@jakebailey
Jake Bailey (jakebailey) merged commit 4765355 into microsoft:main May 6, 2022
@jakebailey
Jake Bailey (jakebailey) deleted the more-describe-it-oops branch May 6, 2022 18:09
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants