-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
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
ReferenceError: regeneratorRuntime is not defined #1
Comments
This error usually come from But I'm not sure how it works with
Thank you, I've built this library because our application has more than 1000 unit tests concerning our RTDB security rules, but we are not yet using Firestore and this library for our application, because we cannot switch to Firestore while it doesn't support validating batch updates / transactions. I really hope Firebase would focus the next releases of Firestore on:
That being said, we love the idea of Firebase ❤️, Firestore looks like an amazing solution in theory, but it's really frustrating to invest in a tool that look mostly focused on prototypes and small projects. We sometimes feel like we are the only company trying to build a well-tested, secure application on Firebase.. |
@SamyPesse first of all thank you for your feedback on Firestore. I hear you and I will make sure others do as well. As for this bug:
|
Thanks, As I've told @mcdonamp as well, we will be happy to help alpha/beta test or even contribute writing tooling to fix these issues.
This library is compiled with The polyfill should be included before anything else. If you use Try This "works" for me: import 'babel-polyfill';
import * as expectFirestore from 'expect-firestore';
const database = new expectFirestore.Database({
credential: {},
data: {},
rules: ''
});
// Note: doesn't matter if this function is async or not, or if I await the promises or not
async function main() {
await database.authorize();
// Test a get
await database.canGet({ uid: 'some-user' }, 'users/userA');
}
main(); It outputs:
|
@SamyPesse now I get it, thanks! I had to follow your advice and nuke my |
I ran into this issue too: GitbookIO#1
I work on Firebase and I wanted to add your awesome library to our
firebase/snippets-rules
github repository. I am running into a strange error, hoping you can help (I'm not a JavaScript expert at all so excuse me if this is totally user error).I am trying out this library and decided to run a basic test:
When I run it, this errors:
The text was updated successfully, but these errors were encountered: