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

fix(expect-expert): report on test function identifier rather than body #337

Merged
merged 2 commits into from
Nov 28, 2024
Merged

fix(expect-expert): report on test function identifier rather than body #337

merged 2 commits into from
Nov 28, 2024

Conversation

manzoorwanijk
Copy link
Contributor

Fixes #336

BEFORE AFTER
Screenshot 2024-11-28 at 5 04 47 PM Screenshot 2024-11-28 at 5 04 02 PM

Copy link
Member

@mskelton mskelton left a comment

Choose a reason for hiding this comment

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

🎉

@@ -5,33 +5,33 @@ runRuleTester('expect-expect', rule, {
invalid: [
{
code: 'test("should fail", () => {});',
errors: [{ messageId: 'noAssertions' }],
errors: [{ messageId: 'noAssertions', type: 'Identifier', }],
Copy link
Member

Choose a reason for hiding this comment

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

TIL

@mskelton
Copy link
Member

Please run prettier, then this is good to go.

@manzoorwanijk
Copy link
Contributor Author

Please run prettier, then this is good to go.

Done. Thanks

@mskelton mskelton merged commit 35e37a1 into playwright-community:main Nov 28, 2024
3 checks passed
@manzoorwanijk manzoorwanijk deleted the update/improve-reporting-for-expect-expect branch November 28, 2024 13:38
Copy link

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

[expect-expect] reports the entire test as erroneous
2 participants