Skip to content

Conversation

mrazauskas
Copy link
Contributor

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.

Copy link

vercel bot commented Aug 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
typed-openapi-bzof Ready Ready Preview Comment Aug 29, 2025 8:13am

@astahmer
Copy link
Owner

ah yes I completely forgot about it, thanks for that! and many thanks for TSTyche it's really awesome 🙏

Copy link

pkg-pr-new bot commented Aug 29, 2025

Open in StackBlitz

npm i https://pkg.pr.new/astahmer/typed-openapi@110

commit: 6a06fc2

"checkSuppressedErrors": true,
"checkSourceFiles": true,
"tsconfig": "./tsconfig.ci.json",
"checkSourceFiles": false,
Copy link
Contributor Author

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):

Image

Copy link
Owner

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?

Copy link
Contributor Author

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

(;

@astahmer astahmer merged commit d9a896a into astahmer:main Aug 29, 2025
4 checks passed
run: pnpm test

- name: Test types
run: pnpm --filter typed-openapi test:types
Copy link
Contributor Author

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:

Suggested change
run: pnpm --filter typed-openapi test:types
run: pnpm --filter typed-openapi test:types --target '>=5.2'

@mrazauskas mrazauskas deleted the type-tests-ci branch August 29, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants