@@ -1,3 +1,8 @@
+import fetchMockJest from 'fetch-mock-jest';
+
+// Set Jest global fetchMock so we don't have to import fetchMock in every test.
+fetchMock = fetchMockJest;
+
 beforeEach( () => {
 	global.console.error.mockClear();
 	global.console.warn.mockClear();
beforeEach( () => {
	global.console.error.mockClear();
	global.console.warn.mockClear();
	global.console.log.mockClear();
	global.console.info.mockClear();
	global.console.debug.mockClear();

	localStorage.clear();
	sessionStorage.clear();

	// Clear the mocks for all localStorage/sessionStorage methods.
	[ 'getItem', 'setItem', 'removeItem', 'key' ].forEach( ( method ) => {
		localStorage[ method ].mockClear();
		sessionStorage[ method ].mockClear();
	} );

	fetch.resetMocks();
} );

Let's put the global "instantiation" in `tests/js/setup-globals.js` as `global.fetchMock = fetchMockJest` (unless there's a reason we need to do it this way?). I'm not entirely sure if the import would still be needed here once it's global, so give that a test and see.