cssTransform.js 547 B

12345678910111213141516171819202122
  1. // @remove-on-eject-begin
  2. /**
  3. * Copyright (c) 2014-present, Facebook, Inc.
  4. *
  5. * This source code is licensed under the MIT license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. // @remove-on-eject-end
  9. 'use strict';
  10. // This is a custom Jest transformer turning style imports into empty objects.
  11. // http://facebook.github.io/jest/docs/en/webpack.html
  12. module.exports = {
  13. process() {
  14. return 'module.exports = {};';
  15. },
  16. getCacheKey() {
  17. // The output is always the same.
  18. return 'cssTransform';
  19. },
  20. };