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

Consider _test.{js|ts|gjs|gts} as test file. #2157

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

HEYGUL
Copy link
Contributor

@HEYGUL HEYGUL commented Jul 30, 2024

isTestFile used by 13 rules only consider files ending with -test.{js|ts|gjs|gts}.

Some codebase uses test files named as c, but doing so some eslint rules are basically ignored.

Thus, with this PR, we allow files named as _test.{js|ts|gjs|gts} to be considered as what they are: test files.

Note that this could be a setting provided by each app but we kept it simple at first.

@bmish bmish merged commit 12a8077 into ember-cli:master Jul 30, 2024
8 checks passed
@HEYGUL HEYGUL deleted the allow-_test-file branch July 31, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants