chore update TSTyche to v5#2172
Conversation
|
|
||
| - name: 'Test types' | ||
| run: npm run test:types -- --target 4.5,5.0,current | ||
| run: npm run test:types -- --target '5.0 || *' |
There was a problem hiding this comment.
Since TSTyche 5, the syntax of a range has changed. As you see, now it is similar to semver range.
|
@jdeniau By the way, the following (from #2014) is now passing: expect<Map<string, string>>().type.not.toBe<OrderedMap<string, string>>();Unless I missed something, The good news: TSTyche 6 does not use this internal method anymore. Patching is required, but that would not work with TypeScript 7 anymore. I try to say that this PR could also update TSTyche to |
|
I will check that PR soon. |
|
thanks @mrazauskas ! I did merge that in main, and merged main in the 6.x branch, if you want to upgrade to tstyche 6.x |
Closes #2169
This PR updates TSTyche to v5.
TSTyche 4 release notes: https://tstyche.org/releases/tstyche-4
TSTyche 5 release notes: https://tstyche.org/releases/tstyche-5
Notable changes:
.toBeAssignableWith()is renamed to.toBeAssignableFrom()I think, these test cases look more consistent when
.toBeAssignableTo()is used. Because the type under test stay on the left hand side in all assertions. LikeSet([1, 'a'])in the following:This is sorted out. What about TypeScript version?