firestore-snapshot-utils
v0.1.2
Published
**Utils for testing Firestore DB snapshots**
Downloads
43
Maintainers
Readme
firestore-snapshot-utils
Utils for testing Firestore DB snapshots
Features:
- Get snapshot for a db collection
- Generate an object with changes (add/remove/change)
- Normalized Timestamps in changes
- Mask properties (e.g. IDs that change with every test)
- Generate a textual diff with changes
Configuration before you start:
Add NPM_TOKEN to the repo secrets
NOTE: The package must have been published at least once with `npm publish` in order to be able to generate a granular token scoped to the specific package.
- Get a token from npmjs.com
- Add a secret with the npm token to be used by Github Actions. The secret must be named
NPM_TOKEN
.
API Reference
See docs