File tree Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Expand file tree Collapse file tree 4 files changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -66,21 +66,26 @@ $ yarn
66
66
A production project is required to test the Firebase JS SDK. You can create a
67
67
new project by visiting the [ Firebase Console] ( https://console.firebase.google.com/ ) .
68
68
69
+ #### Firestore Support
70
+
71
+ Visit the database section of the console and enable the Cloud Firestore Beta.
72
+ You can select either of the default permissions settings as we will overwrite
73
+ them below.
74
+
75
+ #### Authentication Support
76
+
77
+ Visit the authentication config in your project and enable the ` Anonymous `
78
+ sign-in provider to complete your project config.
79
+
69
80
#### Automated Setup
70
81
71
- Most of the test setup can be done by running the following command at the root
72
- of the package:
82
+ The remainder of the test setup can be done by running the following command at
83
+ the root of the package:
73
84
74
85
``` bash
75
86
yarn test:setup
76
87
```
77
88
78
- #### Authentication Support
79
-
80
- This is the only piece of config that must be done manually. Visit the
81
- authentication config in your project and enable the ` Anonymous ` sign-in
82
- provider to complete your project config.
83
-
84
89
### Running the tests
85
90
86
91
Each of the directories in the ` integration ` directory as well as the ` packages `
Original file line number Diff line number Diff line change 1
1
{
2
2
"database" : {
3
3
"rules" : " database.rules.json"
4
+ },
5
+ "firestore" : {
6
+ "rules" : " firestore.rules" ,
7
+ "indexes" : " firestore.indexes.json"
4
8
}
5
- }
9
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "indexes" : []
3
+ }
Original file line number Diff line number Diff line change
1
+ service cloud .firestore {
2
+ match / databases/ {database }/ documents {
3
+ match / {document =** } {
4
+ allow read , write ;
5
+ }
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments