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
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
.
See docs