1import crypto from 'crypto'; 2import os from 'os'; 3import path from 'path'; 4 5module.exports = { 6 directory() { 7 return path.join(os.tmpdir(), crypto.randomBytes(16).toString('hex')); 8 }, 9 file: jest.fn(({ name }) => '/tmp/' + name), 10}; 11