Skip to content

Commit 549513c

Browse files
committed
tweak for 4.3
1 parent 537c385 commit 549513c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/jest-environment/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ export declare class JestEnvironment<Timer = unknown> {
4545
exportConditions?: () => Array<string>;
4646
}
4747

48-
export type Module = NodeModule;
48+
export interface Module extends NodeModule {
49+
// for some reason missing: https://nodejs.org/api/modules.html#modules_module_path
50+
path: string;
51+
}
4952

5053
// TODO: Move to some separate package
5154
export interface Jest {

packages/jest-runtime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import * as nativeModule from 'module';
8+
import nativeModule = require('module');
99
import * as path from 'path';
1010
import {URL, fileURLToPath, pathToFileURL} from 'url';
1111
import {

0 commit comments

Comments
 (0)