regexper-static/jest/static-file-transform.js
2019-01-29 17:23:54 -05:00

8 lines
161 B
JavaScript

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