Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"Jest Test Current eslint-plugin Rule" does not trigger on Windows #1519

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

Closed
JoshuaKGoldberg opened this issue Jan 25, 2020 · 1 comment · Fixed by #1523
Closed

"Jest Test Current eslint-plugin Rule" does not trigger on Windows #1519

JoshuaKGoldberg opened this issue Jan 25, 2020 · 1 comment · Fixed by #1523
Labels
tests anything to do with testing

Comments

@JoshuaKGoldberg
Copy link
Member

Repro

  1. code . in the root repository directory on a Windows 10 computer
  2. Open an eslint-plugin rule
  3. Press F5 to launch Jest Test Current eslint-plugin Rule

Expected Result

That rule's .test.ts file should be debugged.

Actual Result

On Windows, this does not happen.

Additional Info

Reverting the change in #432 fixes it 😄. This is a similar issue to #195.

Versions

package version
@typescript-eslint/eslint-plugin N/A
@typescript-eslint/parser N/A
TypeScript N/A
ESLint N/A
node 12.0.0
npm 6.9.0
@JoshuaKGoldberg JoshuaKGoldberg added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for team members to take a look labels Jan 25, 2020
@armano2 armano2 added bug Something isn't working and removed triage Waiting for team members to take a look package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin labels Jan 25, 2020
@armano2
Copy link
Collaborator

armano2 commented Jan 25, 2020

This seems to be an issue not only for eslint-plugin but also for other configurations

  • Jest Test Current eslint-plugin-internal Rule

you should try changing;

- // needs the '' around it so that the () are properly handled
- "'tests/(.+/)?${fileBasenameNoExtension}'"
+ "${fileBasename}"

@armano2 armano2 added tests anything to do with testing and removed bug Something isn't working labels Jan 25, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tests anything to do with testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants