ReporterValidationErrors.d.ts 1.1 KB

12345678910111213141516171819
  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. import { Config } from '@jest/types';
  8. /**
  9. * Reporter Validation Error is thrown if the given arguments
  10. * within the reporter are not valid.
  11. *
  12. * This is a highly specific reporter error and in the future will be
  13. * merged with jest-validate. Till then, we can make use of it. It works
  14. * and that's what counts most at this time.
  15. */
  16. export declare function createReporterError(reporterIndex: number, reporterValue: Array<Config.ReporterConfig> | string): import("jest-validate/build/utils").ValidationError;
  17. export declare function createArrayReporterError(arrayReporter: Config.ReporterConfig, reporterIndex: number, valueIndex: number, value: string | Record<string, any>, expectedType: string, valueName: string): import("jest-validate/build/utils").ValidationError;
  18. export declare function validateReporters(reporterConfig: Array<Config.ReporterConfig | string>): boolean;
  19. //# sourceMappingURL=ReporterValidationErrors.d.ts.map