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

sourcemaps not quite working: lerna+typescript 3 project references #826

Closed
axelnormand opened this issue Oct 23, 2018 · 1 comment
Closed

Comments

@axelnormand
Copy link

Issue :

Here is a sample repo trying to create a common publishable component library as used by 2 apps. All in one lerna monorepo. Includes jest, styled components, babel 7, ts-jest etc.
https://github.com/axelnormand/react-typescript-monorepo

The strange thing that's happening is the jest --coverage report is only covering the common submodule and not the 2 apps. I get 100% coverage in the common tests, but 0 in app1 and app2.

Have tried the babel-jest preprocessor to no avail
Perhaps it's a source map generation thing in a tsconfig?

Any help or clues much appreciated, I found it quite tricky to all get working.

Expected behavior :

Jest coverage report covers app1 and app2

@axelnormand
Copy link
Author

Actually think its a jest issue :)
something to do with multi-project setting
jestjs/jest#5457

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

1 participant