ModuleNotFoundError.d.ts 663 B

123456789101112131415161718
  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 type { Config } from '@jest/types';
  8. export default class ModuleNotFoundError extends Error {
  9. code: string;
  10. hint?: string;
  11. requireStack?: Array<Config.Path>;
  12. siblingWithSimilarExtensionFound?: boolean;
  13. moduleName?: string;
  14. private _originalMessage?;
  15. constructor(message: string, moduleName?: string);
  16. buildMessage(rootDir: Config.Path): void;
  17. static duckType(error: ModuleNotFoundError): ModuleNotFoundError;
  18. }