each.js 920 B

1234567891011121314151617181920212223242526272829303132333435
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. var _jestEach = require('jest-each');
  6. /**
  7. * Copyright (c) 2018-present, Facebook, Inc. All rights reserved.
  8. *
  9. * This source code is licensed under the MIT license found in the
  10. * LICENSE file in the root directory of this source tree.
  11. *
  12. *
  13. */
  14. exports.default = environment => {
  15. environment.global.it.each = (0, _jestEach.bind)(environment.global.it);
  16. environment.global.fit.each = (0, _jestEach.bind)(environment.global.fit);
  17. environment.global.xit.each = (0, _jestEach.bind)(environment.global.xit);
  18. environment.global.describe.each = (0, _jestEach.bind)(
  19. environment.global.describe,
  20. false
  21. );
  22. environment.global.xdescribe.each = (0, _jestEach.bind)(
  23. environment.global.xdescribe,
  24. false
  25. );
  26. environment.global.fdescribe.each = (0, _jestEach.bind)(
  27. environment.global.fdescribe,
  28. false
  29. );
  30. };