-
Notifications
You must be signed in to change notification settings - Fork 39
chore: run type tests in CI #110
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
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ah yes I completely forgot about it, thanks for that! and many thanks for TSTyche it's really awesome 🙏 |
commit: |
"checkSuppressedErrors": true, | ||
"checkSourceFiles": true, | ||
"tsconfig": "./tsconfig.ci.json", | ||
"checkSourceFiles": false, |
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.
The checkSourceFiles
option is removed in the next major. It does way too much.
tsconfig.ci.json
is not picked, because it does not include the test file. TSTyche default are used instead a they are rather strict.
Without tsconfig
option set, packages/typed-openapi/tsconfig.json
is loaded. I think that is right, or? Look for 'uses' line to see which TSConfig is loaded (documentation):

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.
yes it should be fine!
btw how did you find out that I started using TSTyche?
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.
btw how did you find out that I started using TSTyche?
GitHub told me: https://github.com/tstyche/tstyche/network/dependents
(;
run: pnpm test | ||
|
||
- name: Test types | ||
run: pnpm --filter typed-openapi test:types |
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.
You can also test agains range of TypeScript versions. To be sure older version work as expected (if that is important). For example:
run: pnpm --filter typed-openapi test:types | |
run: pnpm --filter typed-openapi test:types --target '>=5.2' |
This adds type tests to CI runs. Seems like they are not included currently. Was this simply overlooked in #108, or I misunderstood something?
Glad to see you found TSTyche useful. Please, always ping me if you have any questions.