index.d.ts 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. */
  8. import { Global } from '@jest/types';
  9. import bind from './bind';
  10. declare type Global = Global.Global;
  11. declare const each: {
  12. (table: Global.EachTable, ...data: unknown[]): {
  13. describe: {
  14. (title: string, suite: Global.EachTestFn, timeout?: number | undefined): void;
  15. skip: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  16. only: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  17. };
  18. fdescribe: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  19. fit: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  20. it: {
  21. (title: string, test: Global.EachTestFn, timeout?: number | undefined): void;
  22. skip: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  23. only: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  24. };
  25. test: {
  26. (title: string, test: Global.EachTestFn, timeout?: number | undefined): void;
  27. skip: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  28. only: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  29. };
  30. xdescribe: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  31. xit: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  32. xtest: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  33. };
  34. withGlobal(g: Global.Global): (table: Global.EachTable, ...data: unknown[]) => {
  35. describe: {
  36. (title: string, suite: Global.EachTestFn, timeout?: number | undefined): void;
  37. skip: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  38. only: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  39. };
  40. fdescribe: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  41. fit: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  42. it: {
  43. (title: string, test: Global.EachTestFn, timeout?: number | undefined): void;
  44. skip: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  45. only: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  46. };
  47. test: {
  48. (title: string, test: Global.EachTestFn, timeout?: number | undefined): void;
  49. skip: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  50. only: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  51. };
  52. xdescribe: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  53. xit: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  54. xtest: (title: string, test: Global.EachTestFn, timeout?: number | undefined) => void;
  55. };
  56. };
  57. export { bind };
  58. export default each;
  59. //# sourceMappingURL=index.d.ts.map