Skip to content
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

Ensure tests are type-checked but not published #241

Merged
merged 1 commit into from Nov 19, 2022
Merged

Ensure tests are type-checked but not published #241

merged 1 commit into from Nov 19, 2022

Conversation

bmish
Copy link
Owner

@bmish bmish commented Nov 18, 2022

Before this, yarn tsc did not type-check the tests since they were not included in tsconfig because we did not want them to get published. This could be confusing since you could later find out there were type issues in the tests (which could cause the tests to get stuck).

Now, we type-check tests by default, but we have to use a separate tsconfig for publishing to ensure we don't publish compiled test files.

Similar to this: https://bobbyhadz.com/blog/typescript-exclude-test-files-from-compilation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant