cssTransform.js 323 B

12345678910111213
  1. // This is a custom Jest transformer turning style imports into empty objects.
  2. // http://facebook.github.io/jest/docs/tutorial-webpack.html
  3. module.exports = {
  4. process() {
  5. return 'module.exports = {};';
  6. },
  7. getCacheKey(fileData, filename) {
  8. // The output is always the same.
  9. return 'cssTransform';
  10. },
  11. };