Skip to content

Add TS compile check before tests for core-owned packages #2515

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

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

hsubox76
Copy link
Contributor

@hsubox76 hsubox76 commented Jan 9, 2020

Our test Typescript compiler, ts-loader for Webpack, doesn't exit if there's a compilation error. If it's a minor error (type mismatch) which doesn't prevent compilation to JavaScript, it will show the error, but create the file, and exit with a 0 code, then run tests. Although these are minor errors, they seem worth catching in the tests.

This change fixes a type error in analytics tests and updates test scripts for all JScore-owned packages to try TS compilation before running tests. Will roll out to other packages in a future change.

Copy link
Contributor

@hiranya911 hiranya911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@hsubox76 hsubox76 merged commit df0f9c3 into master Jan 23, 2020
@hsubox76 hsubox76 deleted the ch-testfix branch January 27, 2020 20:13
@firebase firebase locked and limited conversation to collaborators Feb 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants