https://github.com/firebase/firebase-functions-test/blob/c1dd82b84f5fe4126ca666577a04a7d72e96f2fc/src/providers/firestore.ts#L275 'localhost' value is hardcoded. Thanks makes it impossibe to run emulators on another host. I encountered this problem when trying to run tests in Dockerized environment.