in my tests I need to RELOAD-REQUIRE a file in order for it to have the correct data. Right now I am using
require() but I am getting a CACHED version (from
require.cache) with wrong OUT-DATED data.
I found some NPM-modules that promise to give real reload-behaviour, tried them out, but the WON’T WORK IN METEOR context. I guess it is because the require
module.export-syntax ( https://nodejs.org/api/modules.html#modules_module_exports )?
What is the METEOR-WAY of
require-reload a file WITHOUT using the cached version?