mockError = (err) => {
	if (
		err.includes("ECONNREFUSED")
		|| err.includes("ECONNRESET")
		|| err.includes("socket hang up")
		|| err.includes("exports is not defined")
		|| err.includes("module is not defined")
		|| err.includes("write EPIPE")
		|| err.includes("AggregateError")
		|| err.includes("ERR_SOCKET_CONNECTION_TIMEOUT")
	) {
		jest.fn();
	} else {
		console.dir(err);
	}
}
Suppresses errors concerning web server already shut down.
@param {string} err The error message.