bind.d.ts 765 B

123456789101112131415
  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 type { Global } from '@jest/types';
  9. export declare type EachTests = ReadonlyArray<{
  10. title: string;
  11. arguments: ReadonlyArray<unknown>;
  12. }>;
  13. declare type GlobalCallback = (testName: string, fn: Global.ConcurrentTestFn, timeout?: number) => void;
  14. export default function bind<EachCallback extends Global.TestCallback>(cb: GlobalCallback, supportsDone?: boolean): (table: Global.EachTable, ...taggedTemplateData: Global.TemplateData) => (title: string, test: Global.EachTestFn<EachCallback>, timeout?: number | undefined) => void;
  15. export {};