Skip to content
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

pnpnm workspaces and project root #959

Closed
qm3ster opened this issue Jan 28, 2019 · 3 comments
Closed

pnpnm workspaces and project root #959

qm3ster opened this issue Jan 28, 2019 · 3 comments

Comments

@qm3ster
Copy link

qm3ster commented Jan 28, 2019

I get a ts-jest[config] (WARN) Unable to find the root of the project where ts-jest has been installed. warning when using in a pnpm workspace.
It doesn't seem to be impacting the transpilation or type checking though.
Is there any way I can fix this?

@GeeWee
Copy link
Collaborator

GeeWee commented Feb 16, 2019

Hi. This is not enough information for us to do anything with. Please open a new issue, and follow the issue template. Thanks!

@GeeWee GeeWee closed this as completed Feb 16, 2019
@boardthatpowder
Copy link

I have the same issue using ts-jest with ppm. Looks like it may be related to #823.

@beenotung
Copy link

beenotung commented Oct 10, 2020

The workaround is to explicit specify the package.json.

jest.config.js:

module.exports = {
  preset: "ts-jest",
  testEnvironment: "node",
  globals: {
    "ts-jest": {
      packageJson: "package.json",
    },
  },
}

Can we make ts-jest config:init include that global setting by default?

beenotung added a commit to beenotung/ts-jest that referenced this issue Oct 10, 2020
Before this patch, when I run jest test with jest.config.js generated
`ts-jest config:init`, it shows below warning message:

```
ts-jest[config] (WARN) Unable to find the root of the project where ts-jest has been installed.
```

This patch addresses the issue kulshekhar#959
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants