regexper-static/jest/static-file-transform.js

8 lines
161 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports = {
process(src, filename) {
return `module.exports = ${ JSON.stringify(path.basename(filename)) };`;
}
};