Skip to content

[no-deprecated-functions] auto-detect error with monorepo-like project structure #874

@WORMSS

Description

@WORMSS

Changing the auto detect from

const jestPath = require.resolve('jest/package.json', {
      paths: [process.cwd()]
    });

to

const jestPath = require.resolve('jest/package.json', {
      paths: [process.cwd(), __dirname]
    });

fixes the bug introduced 15 months ago with non-root level projects.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions