index.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. var _exportNames = {
  6. BaseWatchPlugin: true,
  7. JestHook: true,
  8. PatternPrompt: true,
  9. TestWatcher: true,
  10. Prompt: true
  11. };
  12. Object.defineProperty(exports, 'BaseWatchPlugin', {
  13. enumerable: true,
  14. get: function () {
  15. return _BaseWatchPlugin.default;
  16. }
  17. });
  18. Object.defineProperty(exports, 'JestHook', {
  19. enumerable: true,
  20. get: function () {
  21. return _JestHooks.default;
  22. }
  23. });
  24. Object.defineProperty(exports, 'PatternPrompt', {
  25. enumerable: true,
  26. get: function () {
  27. return _PatternPrompt.default;
  28. }
  29. });
  30. Object.defineProperty(exports, 'Prompt', {
  31. enumerable: true,
  32. get: function () {
  33. return _Prompt.default;
  34. }
  35. });
  36. Object.defineProperty(exports, 'TestWatcher', {
  37. enumerable: true,
  38. get: function () {
  39. return _TestWatcher.default;
  40. }
  41. });
  42. var _BaseWatchPlugin = _interopRequireDefault(require('./BaseWatchPlugin'));
  43. var _JestHooks = _interopRequireDefault(require('./JestHooks'));
  44. var _PatternPrompt = _interopRequireDefault(require('./PatternPrompt'));
  45. var _TestWatcher = _interopRequireDefault(require('./TestWatcher'));
  46. var _constants = require('./constants');
  47. Object.keys(_constants).forEach(function (key) {
  48. if (key === 'default' || key === '__esModule') return;
  49. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  50. if (key in exports && exports[key] === _constants[key]) return;
  51. Object.defineProperty(exports, key, {
  52. enumerable: true,
  53. get: function () {
  54. return _constants[key];
  55. }
  56. });
  57. });
  58. var _Prompt = _interopRequireDefault(require('./lib/Prompt'));
  59. var _patternModeHelpers = require('./lib/patternModeHelpers');
  60. Object.keys(_patternModeHelpers).forEach(function (key) {
  61. if (key === 'default' || key === '__esModule') return;
  62. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  63. if (key in exports && exports[key] === _patternModeHelpers[key]) return;
  64. Object.defineProperty(exports, key, {
  65. enumerable: true,
  66. get: function () {
  67. return _patternModeHelpers[key];
  68. }
  69. });
  70. });
  71. function _interopRequireDefault(obj) {
  72. return obj && obj.__esModule ? obj : {default: obj};
  73. }