const { readFileSync } = require('fs'); const { join } = require('path'); module.exports.readMock = function readMock(mockFilename) { const filePath = join(__dirname, '..', '__mocks__', mockFilename); return readFileSync(filePath, { encoding: 'utf-8' }); };