-
-
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(type tests): bump jest-runner-tsd
#12299
Conversation
Codecov Report
@@ Coverage Diff @@
## main #12299 +/- ##
==========================================
- Coverage 67.31% 67.28% -0.04%
==========================================
Files 328 328
Lines 17297 17305 +8
Branches 5065 5065
==========================================
- Hits 11644 11643 -1
- Misses 5620 5629 +9
Partials 33 33
Continue to review full report at Codecov.
|
Brief motivation / thinking on the compiler configuration for type tests (in other words, the In this case the type tests run agains the build artefacts. Ideally the test file should be written from user perspective, or: how these types will be consumed by the user? The root Another good question: which compiler options are important for the type testing? What is being tested? In this case we are testing types of returned values, argument types, number of arguments, type of I think having explicit compiler configuration for type tests is good solution. It is explicit, predictable and flexible (does not depend on anything). |
@@ -0,0 +1,9 @@ | |||
{ | |||
"extends": "@tsconfig/node10/tsconfig.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we create a tsconfig.test.json
in root which has all this stuff instead of repeating in each package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Perhaps .tsd
pre-suffix is good idea? Also for jest.config.tsd.js
?
@mrazauskas wow!, I personally faces this issue, a while ago |
Thank you! This is awesome work 👍 |
@SimenB Thanks. I was typing motivation. Will leave it here:
Currently all tests are excluded in the root |
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
@SimenB As agreed, let’s put updated
jest-runner-tsd
to work.Fixes #12198
Test plan
Green CI