test(signals): update signal test to use vitest expectTypeOf#5127
test(signals): update signal test to use vitest expectTypeOf#5127santoshyadavdev wants to merge 6 commits intongrx:mainfrom
Conversation
✅ Deploy Preview for ngrx-io ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
rainerhahnekamp
left a comment
There was a problem hiding this comment.
@santoshyadavdev. Looks reasonable to me at first sight. Still have to check it thoroughly, but it seems we will settle down with a combination of @ts-expect-error and Vitest type assertions?
Yes you are right, I will fix some pending code and linter soon |
|
Do I get it right that @rainerhahnekamp Would be be still interested to check out TSTyche? (Based on #4935 (comment)). I could put together a similar PR. One of the advantages, there would be no need for |
rainerhahnekamp
left a comment
There was a problem hiding this comment.
A quick update from my side. I'd like to go through each test manually first because these are our lifesavers. I don't expect any issues, but I want to be 100% safe.
timdeschryver
left a comment
There was a problem hiding this comment.
This looks great, thanks @santoshyadavdev !
I left some comments with the differences between the old and new tests.
@rainerhahnekamp fyi, I wasn't aware of it, but the @ts-expect-error messages are not tested. This isn't blocking for me, but on the other hand this might give false confidence in the tests. That's why I'm fine with removing the message in these test cases.
I was aware. @mrazauskas pointed that out in his PR's description #5128 (comment). It isn't a blocker for me either and I am fine if we remove the messages to avoid misunderstandings. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Closes #
What is the new behavior?
uses expectTypeOf for type testing, this closed #4935 partially
Does this PR introduce a breaking change?
Other information