Skip to content

Commit 7577641

Browse files
committed
remove auth step
1 parent 80ba0a0 commit 7577641

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

TUTORIAL.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,9 @@ Then the test dependencies:
1414
npm 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-
2617
Now we're ready to actually run the tests:
2718
```
28-
firebase emulators:exec "npm test"
19+
npm run ci
2920
```
3021

3122
If 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)

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
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
}

0 commit comments

Comments
 (0)