Skip to content

Commit dab7f90

Browse files
authored
Move firebase/testing to firebase/rules-unit-testing (#20)
1 parent 9f805d5 commit dab7f90

File tree

18 files changed

+4847
-1748
lines changed

18 files changed

+4847
-1748
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
2-
*.log
2+
*.log
3+
*-coverage.html
4+
.DS_Store

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The repository is broken up by testing strategy:
66

77
* **[Unit testing security rules](unit-test-security-rules/README.md)** -
88
write unit tests for your Realtime Database and Cloud Firestore security
9-
rules using `mocha` and the `@firebase/testing` library.
9+
rules using `mocha` and the `@firebase/rules-unit-testing` library.
1010
* **[Unit testing Cloud Functions](unit-test-cloud-functions/README.md)** -
1111
write unit tests for your Cloud Functions usiing the `firebase-functions-test` SDK.
1212
* **[Connect your app to the Emulator Suite](manual-emulator-testing/README.md)** -
@@ -25,4 +25,4 @@ See [LICENSE](LICENSE)
2525
[![Actions Status][gh-actions-badge]][gh-actions]
2626

2727
[gh-actions]: https://github.com/firebase/quickstart-testing/actions
28-
[gh-actions-badge]: https://github.com/firebase/quickstart-testing/workflows/CI%20Tests/badge.svg
28+
[gh-actions-badge]: https://github.com/firebase/quickstart-testing/workflows/CI%20Tests/badge.svg

cs-walkthrough/functions/package-lock.json

Lines changed: 956 additions & 1125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cs-walkthrough/functions/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
"start": "npm run shell",
99
"deploy": "firebase deploy --only functions",
1010
"logs": "firebase functions:log",
11-
"test": "mocha --timeout 5000"
11+
"test": "mocha --timeout 5000 --exit"
1212
},
1313
"engines": {
14-
"node": "8"
14+
"node": "10"
1515
},
1616
"dependencies": {
1717
"file-system": "^2.2.2",
18-
"firebase-admin": "^8.13.0",
19-
"firebase-functions": "^3.7.0"
18+
"firebase-admin": "^9.1.1",
19+
"firebase-functions": "^3.11.0"
2020
},
2121
"devDependencies": {
22-
"@firebase/testing": "^0.20.5",
22+
"@firebase/rules-unit-testing": "^1.0.2",
2323
"eslint": "^5.12.0",
2424
"eslint-plugin-promise": "^4.0.1",
2525
"firebase-functions-test": "^0.2.1",

cs-walkthrough/functions/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const TEST_FIREBASE_PROJECT_ID = "test-firestore-rules-project";
1919
// TODO: Change this to your real Firebase Project ID
2020
const REAL_FIREBASE_PROJECT_ID = "changeme";
2121

22-
const firebase = require("@firebase/testing");
22+
const firebase = require("@firebase/rules-unit-testing");
2323

2424
const seedItems = {
2525
"chocolate": 4.99,

cs-walkthrough/functions/test_all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const path = require("path");
1717
const FIREBASE_PROJECT_ID = "something"
1818
const TEST_FIREBASE_PROJECT_ID = "test-firestore-rules-project";
1919

20-
const firebase = require("@firebase/testing");
20+
const firebase = require("@firebase/rules-unit-testing");
2121

2222
const seedItems = {
2323
"chocolate": 4.99,

0 commit comments

Comments
 (0)