Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Allowing GlobalSetup and GlobalTeardown for Jest testing. #412

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Allowing GlobalSetup and GlobalTeardown for Jest testing. #412

wants to merge 8 commits into from

Conversation

Brian-McBride
Copy link

For my unit and integration tests, I really needed to leverage the newish feature in Jest GlobalSetup and GlobalTeardown.

It looks like Dan will add it to create-react-app. It's really just adding the passthrough keys. However, this script needs updated jest and ts-jest packages. Which also lead to some minor fixes prompted by ts-jest.
facebook/create-react-app#4393 (comment)

Then, well, I saw a few really old npm package versions and bumped them, testing with a fresh create-react-app. My build, start, and test commands all work as expected in this Pull Request. Plus, I gain the ability to now setup and teardown global settings properly around unit/integration testing.

Allowing users to define Jest GlobalSetup and GlobalTeardown for testing.
Adding in GlobalSetup and GlobalTeardown keys
Updating packages here and there as source repo is a bit behind.
Reducing changes for now
Accidently simplified too far last commit.
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.

1 participant