Bug: context.cwd
is incorrect set as /
when absolute path is used as filename
in rule tester
#11274
Open
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: rule-tester
Issues related to the @typescript-eslint/rule-tester package
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
rule-tester
Playground Link
No response
Repro Code
typescript-eslint/packages/rule-tester/src/RuleTester.ts
Lines 215 to 217 in 936f350
typescript-eslint/packages/rule-tester/src/RuleTester.ts
Line 225 in 936f350
Expected Result
context.cwd
should not be set/
Actual Result
context.cwd === '/'
Additional Info
I thought it was ESLint's issue eslint/eslint#19821, and found out it's actually
typescript-eslint
's.Versions
@typescript-eslint/rule-tester
8.33.0
The text was updated successfully, but these errors were encountered: