jest.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. 'use strict';
  2. function cli() {
  3. const data = _interopRequireWildcard(require('jest-cli'));
  4. cli = function cli() {
  5. return data;
  6. };
  7. return data;
  8. }
  9. function _interopRequireWildcard(obj) {
  10. if (obj && obj.__esModule) {
  11. return obj;
  12. } else {
  13. var newObj = {};
  14. if (obj != null) {
  15. for (var key in obj) {
  16. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  17. var desc =
  18. Object.defineProperty && Object.getOwnPropertyDescriptor
  19. ? Object.getOwnPropertyDescriptor(obj, key)
  20. : {};
  21. if (desc.get || desc.set) {
  22. Object.defineProperty(newObj, key, desc);
  23. } else {
  24. newObj[key] = obj[key];
  25. }
  26. }
  27. }
  28. }
  29. newObj.default = obj;
  30. return newObj;
  31. }
  32. }
  33. /**
  34. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  35. *
  36. * This source code is licensed under the MIT license found in the
  37. * LICENSE file in the root directory of this source tree.
  38. */
  39. module.exports = cli();