firestore-snapshot-utils

0.1.2 • Public • Published

firestore-snapshot-utils

Utils for testing Firestore DB snapshots

github license npm version

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.
  1. Get a token from npmjs.com
  2. Add a secret with the npm token to be used by Github Actions. The secret must be named NPM_TOKEN.

API Reference

See docs

Package Sidebar

Install

npm i firestore-snapshot-utils

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

20.8 kB

Total Files

19

Last publish

Collaborators

  • ericvera