SetParameterType: compatible with break change about in typescript 5.4#835
Conversation
SetParameter: compatible with break change about in typescript 5.4SetParameterType: compatible with break change about in typescript 5.4
| - run: npm install | ||
| - run: npm install typescript@${{ matrix.typescript-version }} | ||
| - run: npx tsc | ||
| - run: npm test |
There was a problem hiding this comment.
This makes it test more than just typescript and may fail for unrelated reasons
There was a problem hiding this comment.
How about using npm test in ts-canary.yml?
There was a problem hiding this comment.
As was mentioned in the issue, tsd ships with its own copy of typescript and as such isn't affected by any changes to the typescript dependency: #831 (comment)
One would instead have to do what I believe @shicks and @trevorade are doing: Use eg. expect-type instead: #499
And since expect-type is validated as part of running tsc itself, no changes to the GitHub Actions would be done then either.
That said: Replacing tsd with expect-type is a much broader topic, as highlighted by eg #499
Though: Since expect-type is already a dev dependency of type-fest as far as I remember it could be good to add a test using that and ensure that breaks the canary tests correctly, at least that way we won't see a regression again.
There was a problem hiding this comment.
See
Line 1 in 4f14bff
type-fest/test-d/required-deep.ts
Line 2 in 4f14bff
Though I'm a bit uncertain if those are actually run using tsc rather than tsd
There was a problem hiding this comment.
Though I'm a bit uncertain if those are actually run using
tscrather thantsd
Unfortunately it's using tsd.
Directory test-d/ was excluded in tsconfig. https://github.com/sindresorhus/type-fest/blob/4f14bff7321b9a9876dca0719945423abd6b4da1/tsconfig.json#L14C2-L14C16
2. Replacenpm testwithnpx tscin github workflow to make testing more comprehensiverelated #831