Is it possible to use Jest to test individual JavaScript files without using require/export?
Let's say I want to test abc.js. Here is an example of abc.js:
(function(){
return {
foo: function(){}
}
})();
Now let's say my test file is abc.test.js. I want to test if foo is a function. How would I go on about testing this file without using modules.exports in abc.js and require in abc.test.js?
Thanks in advance