Esri / arcgis-rest-js

compact, modular JavaScript wrappers for the ArcGIS REST API
https://developers.arcgis.com/arcgis-rest-js/
Apache License 2.0
347 stars 119 forks source link

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

Open gavinr-maps opened 10 months ago

gavinr-maps commented 10 months ago

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