chore(type tests): bump jest-runner-tsd#12299
chore(type tests): bump jest-runner-tsd#12299SimenB merged 5 commits intojestjs:mainfrom mrazauskas:chore-bump-jest-runner-tsd
jest-runner-tsd#12299Conversation
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.
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.
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-tsdto work.Fixes #12198
Test plan
Green CI