Issue with Test Utility Function Returning Undefined at Runtime
not sure if this is the right channel for this - I'm trying to make a test util to allow passing some fixture data to a layer - but at runtime I get undefined instead of the util function. Something to do with the interpreter not having everthing loaded at the time I'm trying to use it.
Is there a better pattern to use than what I'm doing?
note: switching between function expression vs function declaration just changes where the issue arises
example function here:
Is there a better pattern to use than what I'm doing?
note: switching between function expression vs function declaration just changes where the issue arises
example function here:

