You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's because I was silly 😅 I can't remember why I actually included it, but I've tried it locally without and nothing seems to have broken so far.
I'm going to make a draft PR removing it - would you mind applying it to a few projects (ideally both monorepo and not) and seeing if it all still works? (both in any editor tools you use and from the command line)
If we have multiple projects in a parent directory like this:
Then if we run eslint in
project1
fromworkspace
folder,require.resolve
throwsbecause from working directory it can't resolve
jest/package.json
. Now if we remove this line itworks obviously: https://github.com/jest-community/eslint-plugin-jest/blob/main/src/rules/no-deprecated-functions.ts#L45
Easy to reproduce with @dbaeumer's plugin for VSCode.
If we open
workspace
folder above in VSCode, no-deprecated-functions rule throws.Not sure if there's a strong reason to resolve jest from
process.cwd()
. If not, can we remove that line?The text was updated successfully, but these errors were encountered: