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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃獰 馃悰 Fix jest tests to fail build correctly #21408

Merged
merged 3 commits into from
Jan 13, 2023
Merged

Conversation

timroes
Copy link
Collaborator

@timroes timroes commented Jan 13, 2023

What

Jests tests currently don't fail the :airbyte-webapp:test task correctly, since specifying --watch and --watchAll=false to jest will cause it to always return 0 exit codes, despite the --watch being overwritten otherwise in behavior by --watchAll=false.

How

This creates a new test:ci npm task that will be called from gradle, to make sure we're not specifying both arguments.
To test you can make sure that SUB_BUILD=PLATFORM ./gradlew :airbyte-webapp:test will now correctly fail if there's a jest test failure.

@timroes timroes requested a review from a team as a code owner January 13, 2023 18:20
@timroes timroes added the area/frontend Related to the Airbyte webapp label Jan 13, 2023
Copy link
Contributor

@krishnaglick krishnaglick left a comment

Choose a reason for hiding this comment

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

Failed locally w/ a failing test!

@timroes
Copy link
Collaborator Author

timroes commented Jan 13, 2023

@timroes timroes merged commit 1502ef4 into master Jan 13, 2023
@timroes timroes deleted the tim/fix-unit-tests branch January 13, 2023 20:00
jbfbell pushed a commit that referenced this pull request Jan 13, 2023
* Fix jest tests to fail build correctly

* Add failing test for demo

* Update StatusCell.test.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants