Skip to content

chore: add type tests for core package #137

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 4 commits into from
Dec 4, 2024
Merged

chore: add type tests for core package #137

merged 4 commits into from
Dec 4, 2024

Conversation

fasttime
Copy link
Member

@fasttime fasttime commented Dec 2, 2024

Prerequisites checklist

What is the purpose of this pull request?

Add type tests.

What changes did you make? (Give an overview)

Add basic type tests for the core package and update the CI build to run the type tests.

Related Issues

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

@fasttime fasttime marked this pull request as ready for review December 2, 2024 12:12
TraversalStep,
} from "@eslint/core";

interface TestLanguageOptions extends LanguageOptions {
Copy link
Member

Choose a reason for hiding this comment

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

Can we add some separators in this file? It's not clear to me which of these is intended to test something vs. which are just data needed for a test later in the file.

Copy link
Member Author

Choose a reason for hiding this comment

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

Most of the definitions use implements or extends to test the exported types, but some of them are also used later as test helpers for other types, like TestSourceCode in createSourceCode. I tried to separate definitions by usage in 0705730.

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@nzakas nzakas merged commit f7cb7e2 into main Dec 4, 2024
18 checks passed
@nzakas nzakas deleted the test-types branch December 4, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy