There exist a lot of misconceptions about the tmp API in general, e.g.
https://github.com/DevExpress/testcafe-browser-provider-browserstack/blob/dbdaf1c00268f9273e566d6d244a25ca31687e41/src/connector.js#L49
Here, the user expects to have tmp clean up a file that is not under its direct control, as the user is only requesting a more or less unique name from tmp.
And the list goes on...