File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,18 +14,9 @@ Then the test dependencies:
1414npm install
1515```
1616
17- The last step is to configure our project:
18- ```
19- firebase login --no-localhost
20- ```
21- followed by
22- ```
23- firebase use --add YOUR_PROJECT_ID
24- ```
25-
2617Now we're ready to actually run the tests:
2718```
28- firebase emulators:exec " npm test"
19+ npm run ci
2920```
3021
3122If all goes well, you should see
@@ -56,8 +47,6 @@ Re-run your test and you should see
5647```
5748> mocha
5849
59-
60-
6150 1) a random user can write a random document
6251
6352 0 passing (787ms)
Original file line number Diff line number Diff line change 44 "description" : " Cloud Firestore emulator testing" ,
55 "scripts" : {
66 "format" : " prettier --write **/*.js" ,
7+ "ci" : " start-server-and-test 'firebase serve --only firestore' http-get://localhost:8080 test" ,
78 "test" : " mocha --exit --timeout 10000"
89 },
910 "devDependencies" : {
1011 "@firebase/testing" : " ^0.10.1" ,
1112 "mocha" : " ^6.1.4" ,
12- "prettier" : " ^1.18.2"
13+ "prettier" : " ^1.18.2" ,
14+ "start-server-and-test" : " ^1.9.1"
1315 }
1416}
You can’t perform that action at this time.
0 commit comments