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(test-utils): use configured RuleTester.afterAll over global #1878

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

csvn
Copy link
Contributor

@csvn csvn commented Jun 11, 2024

The RuleTester class from @typescript-eslint/rule-tester can be extended for various testing frameworks by updating RuleTester.describe, RuleTester.afterAll, etc. But the Angular one is hard-coded to a globalThis.afterAll, and ignores RuleTester.afterAll. This PR will make @angular-eslint/test-utils respect RuleTester.afterAll, by using that first if it exists.

image

Copy link

nx-cloud bot commented Jun 11, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 58809cf. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 6 targets

Sent with 💌 from NxCloud.

@csvn csvn force-pushed the fix/rule-tester-after-all branch from 950187f to 58809cf Compare June 11, 2024 12:00
@csvn csvn changed the title fix: use configured RuleTester.afterAll over global fix(test-utils): use configured RuleTester.afterAll over global Jun 11, 2024
Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

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

Thank you, @csvn!

@JamesHenry JamesHenry merged commit e313efb into angular-eslint:main Jun 30, 2024
8 checks passed
@csvn csvn deleted the fix/rule-tester-after-all branch July 1, 2024 06:39
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