firebase / firebase-functions-test

MIT License
232 stars 48 forks source link

Allow RTDB instance to be specified when using makeDataSnapshot #70

Closed rhodgkins closed 4 years ago

rhodgkins commented 4 years ago

Description

Allow creation of DataSnapshots for multiple RTDB instances.

Why

Currently the only way to create a DataSnapshot for different RTDB instances is to create a App per instance.

Code sample

const snapshot = makeDataSnapshot({ hello: 'world' }, 'path', null, 'https://another-instance.firebaseio.com');