We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently to access the reworked plugins, you access them via statics, e.g:
FirebaseFirestore.instance
Since they're statics, they are not mockable.
One solution proposed by @rrousselGit is to expose a mock static method for each plugin, e.g:
void main() { final mock = FirebaseFirestore.mock(); afterEach(mock.reset); test('foo', () { mock.mockDocument('key', {'foo': 42}); }); }
The text was updated successfully, but these errors were encountered:
Just adding the core label to get this issue out of backlog since this is for all packages, not sure we need to add all the package labels
core
Sorry, something went wrong.
rrousselGit
No branches or pull requests
Bug report
Currently to access the reworked plugins, you access them via statics, e.g:
Since they're statics, they are not mockable.
Solutions
One solution proposed by @rrousselGit is to expose a mock static method for each plugin, e.g:
The text was updated successfully, but these errors were encountered: