Mastering Development

Mocked `fs.createFileSync` and `fs.unlinkSync` are not getting called

I have a function that does a lot of things, but among them is that it copies a file to a special directory, does something with it (calls something to interact with that file without using the fs module), and then deletes the copied file once finished. import { copyFileSync, unlinkSync } from ‘fs’; myOtherFunction(path: […]