UNPKG

712 BTypeScriptView Raw
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 */
7import type { Config } from '@jest/types';
8export 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}
19//# sourceMappingURL=ModuleNotFoundError.d.ts.map
\No newline at end of file