The fetch API is supported by browsers, but when running Jest using older Node versions, it throws null reference errors as the API is not supported. The cross-fetch dep fixes this.
JIRA TASK (Eightfold Employees Only):
ENG-91718
CHANGE TYPE:
[x] Bugfix Pull Request
[ ] Feature Pull Request
TEST COVERAGE:
[ ] Tests for this change already exist
[x] I have added unittests for this change
TEST PLAN:
Pull the PR branch and run yarn and yarn storybook. Verify the InlineSvg stories behave as expected.
SUMMARY:
The fetch API is supported by browsers, but when running Jest using older Node versions, it throws null reference errors as the API is not supported. The cross-fetch dep fixes this.
JIRA TASK (Eightfold Employees Only):
ENG-91718
CHANGE TYPE:
TEST COVERAGE:
TEST PLAN:
Pull the PR branch and run
yarn
andyarn storybook
. Verify theInlineSvg
stories behave as expected.