8000 Bug(rule-tester): Error while testing file with filename that is not a subdirectory of test file · Issue #9906 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content
Bug(rule-tester): Error while testing file with filename that is not a subdirectory of test file #9906
Closed
@kirkwaiblinger

Description

@kirkwaiblinger

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

Same as eslint/eslint#17962.

If you test with a custom filename that escapes the directory tree in which the test file is located, a spurious error occurs.

Reproduction Repository Link

https://github.com/kirkwaiblinger/typescript-eslint-repro-rule-tester-filename

Repro Steps

  1. clone the repo
  2. yarn install
  3. yarn test

Versions

(latest)

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workinglocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.package: rule-testerIssues related to the @typescript-eslint/rule-tester package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0