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

test: Fix types test #28

Merged
merged 3 commits into from
Dec 6, 2024
Merged

test: Fix types test #28

merged 3 commits into from
Dec 6, 2024

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Dec 4, 2024

Prerequisites checklist

What is the purpose of this pull request?

Fix the types test.

What changes did you make? (Give an overview)

Commented out the test to verify that the plugin satisfies ESLint.Plugin. This can't happen because ESLint.Plugin rules aren't yet updated to match language plugin rules type.

Ensure that npm run build is always run before the types test.

Related Issues

Is there anything you'd like reviewers to focus on?

@nzakas nzakas mentioned this pull request Dec 4, 2024
1 task
Comment on lines 4 to 5
css satisfies ESLint.Plugin;
// TODO: Uncomment when ESLint.Plugin can accept non-JS rules
// css satisfies ESLint.Plugin;
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this change is necessary. It looks like the type test is passing. We can always comment out the failing parts of the test in a PR if it's necessary to add a new rule. And I will have a look at eslint/eslint#19157 soon so we can get type support for non-JS rules in the main repo.

@nzakas
Copy link
Member Author

nzakas commented Dec 5, 2024

Another issue that I ran into with test is that we need to be sure npm run build has been run first or else we'll be testing old type definitions, which cost me about 15 minutes just now. So, I updated this PR to ensure that npm run build is always run first.

fasttime
fasttime previously approved these changes Dec 6, 2024
Copy link
Member

@fasttime fasttime left a comment

Choose a reason for hiding this comment

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

Thanks! Just a suggestion to remove an unused comment, then LGTM.

tests/types/types.test.ts Outdated Show resolved Hide resolved
@fasttime fasttime added the accepted There is consensus among the team that this change meets the criteria for inclusion label Dec 6, 2024
Co-authored-by: Francesco Trotta <[email protected]>
@nzakas nzakas merged commit ce16f64 into main Dec 6, 2024
16 checks passed
@nzakas nzakas deleted the fix-types-test branch December 6, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion chore
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants