0.0.19 • Published 6 months ago
@firestore-emulator/server v0.0.19
@firestore-emulator/server
This package is the implementation of the Firestore emulator. It is a Node.js
Installation
npm install @firestore-emulator/server
Usage
import { FirestoreServer } from '@firestore-emulator/server'
const server = new FirestoreServer()
await server.start(8080)
// now you can connect to the emulator at localhost:8080
API
FirestoreServer
state
The current state of the emulator.
see below: FirestoreState
FirestoreState
toJSON()
emits a JSON representation of the state.
for example, you can use the firestore data for snapshot testing:
expect(server.state.toJSON()).toMatchSnapshot()
0.0.19
6 months ago
0.0.18
6 months ago
0.0.17
7 months ago
0.0.16
7 months ago
0.0.15
8 months ago
0.0.14
9 months ago
0.0.13
9 months ago
0.0.12
9 months ago
0.0.11
9 months ago
0.0.10
9 months ago
0.0.9
9 months ago
0.0.8
9 months ago
0.0.7
9 months ago
0.0.6
9 months ago
0.0.5
9 months ago
0.0.4
9 months ago
0.0.3
9 months ago
0.0.2
9 months ago
0.0.1
9 months ago