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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests: Deprecated: Passing fetch-mock reset methods directly in as handlers for before/after test runner hooks #1137

Open
gavinr-maps opened this issue Oct 25, 2023 · 0 comments

Comments

@gavinr-maps
Copy link
Contributor

Describe the bug

We are getting a warning in the automated unit tests:

WARN: 'Deprecated: Passing fetch-mock reset methods
directly in as handlers for before/after test runner hooks.
Wrap in an arrow function instead e.g. `() => fetchMock.restore()`'
Chrome Headless 118.0.5993.88 (Linux x86_64) WARN: 'Deprecated: Passing fetch-mock reset methods
directly in as handlers for before/after test runner hooks.
Wrap in an arrow function instead e.g. `() => fetchMock.restore()`'

Reproduction

See the automated unit tests in any recent PR. For example:
https://github.com/Esri/arcgis-rest-js/actions/runs/6539109657/job/18051471807?pr=1135

Logs

No response

System Info

Latest

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant