Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Consume jest-config-terra #3400

Merged
merged 13 commits into from
Mar 24, 2021
Merged

Consume jest-config-terra #3400

merged 13 commits into from
Mar 24, 2021

Conversation

mjhenkes
Copy link
Contributor

@mjhenkes mjhenkes commented Mar 18, 2021

Summary

This is an example upgrade to the proposed jest-config-terra configuration package.

Notes on the added config:
The i18n package vicariously tests the output of terra-aggregate translations. With the jest-config-terra package no other package needs to run it before jest testing.

Enzyme setup is not included in jest-config-terra as I'm trying to be agnostic to the enzyme/testing-library:react debate and the jest config should be able to be used in no react modules without extraneous dependencies.

The jest config has clear mocks set to true, this uncovered at least one incorrect test that relied on a mocked value in a previous test.

I removed the file mock in favor of just using a string in the affected test files.

Deployment Link

https://terra-core-deployed-pr-#.herokuapp.com/

Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra

@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 18, 2021 19:45 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 19, 2021 15:42 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 19, 2021 22:49 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 22, 2021 13:35 Inactive
@mjhenkes mjhenkes changed the title [DO NOT MERGE] Consume jest-config-terra Consume jest-config-terra Mar 23, 2021
@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 23, 2021 16:35 Inactive
@mjhenkes mjhenkes marked this pull request as ready for review March 23, 2021 16:35
@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 23, 2021 16:36 Inactive
@@ -11,6 +11,9 @@
* Fixed `focus not getting removed` in IE for search and combobox variants.
* Fixed `focus not getting removed` in IE for multiple and tag variants.

* Changed
* Updated Jest command
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to combine this with the above Changed section or leave it like this to save a build?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, good call.

@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 23, 2021 17:09 Inactive
Co-authored-by: Ben Cai <bcai@cerner.com>
@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 23, 2021 17:10 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-core-jest-config--vaiep5 March 23, 2021 21:08 Inactive
@mjhenkes mjhenkes merged commit ddfdcd1 into main Mar 24, 2021
@mjhenkes mjhenkes deleted the jest-config-terra branch March 24, 2021 13:23
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.

4 participants