Closed saygun closed 3 years ago
This is exactly what I'm looking for. Is there anything blocking this?
Still waiting for the response from core members.
@laurenzlong @bkendall @ShoeBoom guys any comment on this?
I'm not actually a part of the firebase team btw. The code itself lgtm
Good evening y'all! Any chance to get this released?
Description
functions.config()
parses ENV variable(s) only once and saves the value into a variable for later usage. Thus setting a new value toprocess.env.CLOUD_RUNTIME_CONFIG
is not causing getting a recent value.Motivation Calling the
mockConfig
function multiple times with different configuration values makes writing unit tests easier and gives flexibility to the developer. What do you think?P.S This topic has been already mentioned in #68.
Code Sample