-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore: improve tsd
runner setup
#12199
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12199 +/- ##
=======================================
Coverage 67.71% 67.71%
=======================================
Files 328 328
Lines 16993 16993
Branches 4818 4818
=======================================
Hits 11507 11507
Misses 5453 5453
Partials 33 33
Continue to review full report at Codecov.
|
I don't think one project for each module is the correct solution. Our current setup works fine with |
It is not very good, I agree. Just push alternative solution. What you think? I was trying to point out that Seems like to pass this check the vanilla In any case the check does not seem to be very valuable and can be silenced in different ways. Currently Regarding the regression. If I remember it right, the runner now works as a drop in replacement for |
Here is the root of the problem. If If Funny part. If Since v1.1.0 was always returning some path, the check passed. So.. might be I introduced a regression in the runner. At the same time, parsing of Another idea: to silence that check in the runner. I mean, the check done by |
Found better solution without workarounds, see jest-community/jest-runner-tsd#41 |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Should unblock #12198
Looks like
tsd
is trying to make sure thatindex.d.ts
file exist in therootDir
or that it can be resolved looking atmain
ortypes
fields ofpackages.json
. The resolved file is not anyhow consumed later. https://github.com/SamVerschueren/tsd/blob/0fb92456b929e71bf6266101cb11d6cc90a241a5/source/lib/index.ts#L16-L30Currently the runner is simply passing
rootDir
totsd
. This is tricky with mono-repo, because.d.ts
files cannot be resolve from the root of the repo.Might be it is possible to improve the runner to be smarter with mono-repos. Perhaps at the moment it is enough to set
rootDir
explicitly for each package which hastsd
tests.Test plan
All tests must pass.