This package is the implementation of the Firestore emulator. It is a Node.js
npm install @firestore-emulator/server@firestore-emulator/serverThis package is the implementation of the Firestore emulator. It is a Node.js
``sh`
npm install @firestore-emulator/server
`ts
import { FirestoreServer } from '@firestore-emulator/server'
const server = new FirestoreServer()
await server.start(8080)
// now you can connect to the emulator at localhost:8080
`
#### state
The current state of the emulator.
see below: FirestoreState
emits a JSON representation of the state.
for example, you can use the firestore data for snapshot testing:
`ts``
expect(server.state.toJSON()).toMatchSnapshot()