(context: any)
| 96 | } |
| 97 | |
| 98 | const initializeContext = (context: any) => { |
| 99 | for (const trigger of emulator.triggers) { |
| 100 | if (emulator.emulatedFunctions.includes(trigger.id)) { |
| 101 | const localFunction = new LocalFunction(trigger, emulator.urls, emulator); |
| 102 | const triggerNameDotNotation = trigger.name.replace(/-/g, "."); |
| 103 | _.set(context, triggerNameDotNotation, localFunction.makeFn()); |
| 104 | } |
| 105 | } |
| 106 | context.help = |
| 107 | "Instructions for the Functions Shell can be found at: " + |
| 108 | "https://firebase.google.com/docs/functions/local-emulator"; |
| 109 | }; |
| 110 | |
| 111 | for (const e of runningEmulators) { |
| 112 | const info = remoteEmulators[e]; |
no test coverage detected
searching dependent graphs…