ocrcc-chatbox/jest/fileTransform.js

8 lines
160 B
JavaScript
Raw Permalink Normal View History

const path = require('path');
2018-05-30 01:56:01 +00:00
module.exports = {
process(src, filename) {
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
2018-05-30 01:56:01 +00:00
},
};