each.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = each;
  6. var _jestEach = require('jest-each');
  7. /**
  8. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  9. *
  10. * This source code is licensed under the MIT license found in the
  11. * LICENSE file in the root directory of this source tree.
  12. */
  13. function each(environment) {
  14. environment.global.it.each = (0, _jestEach.bind)(environment.global.it);
  15. environment.global.fit.each = (0, _jestEach.bind)(environment.global.fit);
  16. environment.global.xit.each = (0, _jestEach.bind)(environment.global.xit);
  17. environment.global.describe.each = (0, _jestEach.bind)(
  18. environment.global.describe,
  19. false
  20. );
  21. environment.global.xdescribe.each = (0, _jestEach.bind)(
  22. environment.global.xdescribe,
  23. false
  24. );
  25. environment.global.fdescribe.each = (0, _jestEach.bind)(
  26. environment.global.fdescribe,
  27. false
  28. );
  29. environment.global.it.concurrent.each = (0, _jestEach.bind)(
  30. environment.global.it.concurrent,
  31. false
  32. );
  33. environment.global.it.concurrent.only.each = (0, _jestEach.bind)(
  34. environment.global.it.concurrent.only,
  35. false
  36. );
  37. environment.global.it.concurrent.skip.each = (0, _jestEach.bind)(
  38. environment.global.it.concurrent.skip,
  39. false
  40. );
  41. }