rules-unit-testing v2 for Angular Jasmine #6392
Unanswered
weilinzung
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After updated to v2 of @firebase/rules-unit-testing which need to use file system to read the rules json, but browser side doesn’t support File system with jasmine and karma . If it is the js sdk, then not sure why need to use nodes lib. Can anyone explain and any other workarounds?
testEnv = await initializeTestEnvironment({
database: {rules: readFileSync('database.rules.json', 'utf8')},
});
Beta Was this translation helpful? Give feedback.
All reactions