Skip to content

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.

3 participants