Skip to content

Commit a871778

Browse files
authored
Fix RUTv2 tests by adding a fake functions directory. (#5363)
* Fix RUTv2 tests by adding a fake functions directory. * Fix package.json. * Commit yarn.lock.
1 parent cdada6c commit a871778

File tree

6 files changed

+1567
-363
lines changed

6 files changed

+1567
-363
lines changed

packages/rules-unit-testing/firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"functions": {
3-
"source": "."
3+
"source": "./functions"
44
},
55
"storage": {
66
"rules": "test/storage.rules"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// This is just a file to make the Functions emulator
2+
// start up correctly during tests. No function is declared.
3+
module.exports = {};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "functions",
3+
"version": "1.0.0",
4+
"description": "Fake functions module for functions emulator.",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"private": true,
10+
"dependencies": {
11+
"firebase-admin": "9.11.1",
12+
"firebase-functions": "3.15.4"
13+
}
14+
}

0 commit comments

Comments
 (0)