Fetch an example Change object of document snapshots already populated with data. Can be passed into a wrapped Firestore onCreate or onDelete function.
[null,null,["Last updated 2019-12-03 UTC."],[],[],null,["# Namespace: firestore\n\n[test](/docs/reference/functions/test/test).firestore\n=====================================================\n\nnamespace static\n\nNamespace for testing Cloud Firestore functions using the Cloud Functions for Firebase Test SDK.\n\nInterface\n---------\n\n### [DocumentSnapshotOptions](/docs/reference/functions/test/test.firestore.DocumentSnapshotOptions)\n\nMethods\n-------\n\n### exampleDocumentSnapshot\n\nstatic\n\nexampleDocumentSnapshot() returns test.firestore.DocumentSnapshot\n\nFetch an example `Change` object of document snapshots already populated with data. Can be passed into a wrapped Firestore `onCreate` or `onDelete` function.\n\nReturns\n\n: `non-null test.firestore.DocumentSnapshot`\n\n### exampleDocumentSnapshotChange\n\nstatic\n\nexampleDocumentSnapshotChange() returns test.firestore.DocumentSnapshot\n\nFetch an example `Change` object of document snapshots already populated with data. Can be passed into a wrapped Firestore `onUpdate` or `onWrite` function.\n\nReturns\n\n: `non-null test.firestore.DocumentSnapshot`\n\n### makeDocumentSnapshot\n\nstatic\n\nmakeDocumentSnapshot(data, refPath, options) returns test.firestore.DocumentSnapshot\n\nCreate a document snapshot for testing.\n\n| #### Parameter ||\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| data | Object Key-value pairs representing data in the document. Pass in `{}` to mock the snapshot of a document that doesn't exist. Value must not be null. |\n| refPath | string Full path of the reference (e.g. 'users/alovelace'). |\n| options | Object Optional parameters as `DocumentSnapshotOptions`. Value may be null. |\n\nReturns\n\n: `non-null test.firestore.DocumentSnapshot`"]]