I am working on writing a unit test for a module. And I really need help to handle global vars and functions. I just have a question: Let's say the module I want to test by the name 'needTest.js'. It is structured as follows:

needTest.js, import main from '../needTest.js'. : main p1, p2 p3, , isA, isB, isC. ? , , , .