Open provDannyLaw opened 2 years ago
It seems to be only malfunctioning in a jest test. reloadConfigs is working as expected when I integrated that into my project.
I suspect that this happens because Jest hooks into require() and implements its own logic to support mocks etc.
node-config-reloadable also uses require()'s internals, probably in a way that is incompatible with jest.
I will take a look, but I am not sure how easy to fix it will be.
Hi,
I am trying out the node-config-reloadable dependency without success. I copied the test case
The expectation came back as false as the rand value did not get recalculated.
The dependencies I am using are