설명 없음

fileTransform.js 305B

12345678910111213
  1. 'use strict';
  2. const path = require('path');
  3. // This is a custom Jest transformer turning file imports into filenames.
  4. // http://facebook.github.io/jest/docs/en/webpack.html
  5. module.exports = {
  6. process(src, filename) {
  7. return `module.exports = ${JSON.stringify(path.basename(filename))};`;
  8. },
  9. };