We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537c385 commit 549513cCopy full SHA for 549513c
2 files changed
packages/jest-environment/src/index.ts
@@ -45,7 +45,10 @@ export declare class JestEnvironment<Timer = unknown> {
45
exportConditions?: () => Array<string>;
46
}
47
48
-export type Module = NodeModule;
+export interface Module extends NodeModule {
49
+ // for some reason missing: https://nodejs.org/api/modules.html#modules_module_path
50
+ path: string;
51
+}
52
53
// TODO: Move to some separate package
54
export interface Jest {
packages/jest-runtime/src/index.ts
@@ -5,7 +5,7 @@
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
-import * as nativeModule from 'module';
+import nativeModule = require('module');
9
import * as path from 'path';
10
import {URL, fileURLToPath, pathToFileURL} from 'url';
11
import {
0 commit comments