const path = require('path'); | |
// Mocks every media file to return its filename. | |
// Return just the file name without wrapping in an object | |
module.exports = { | |
process: (_, filename) => { | |
return `module.exports = '${path.basename(filename)}'`; // Return the filename as a string | |
}, | |
}; | |