
actual logic for other tests. At the test script level it’s one or …ile account.spec.js could prefer to use the actual fs logic provided by the Node.js native library. It’s worth noting that jest doesn’t allow both on the same test script: a test script cannot mock the module for some tests and then revert to a dependency’s actual logic for other tests. At the test script level it’s one or the other.