Skip to content

Commit

Permalink
tweak for 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Oct 9, 2021
1 parent 537c385 commit 549513c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/jest-environment/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export declare class JestEnvironment<Timer = unknown> {
exportConditions?: () => Array<string>;
}

export type Module = NodeModule;
export interface Module extends NodeModule {
// for some reason missing: https://nodejs.org/api/modules.html#modules_module_path
path: string;
}

// TODO: Move to some separate package
export interface Jest {
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as nativeModule from 'module';
import nativeModule = require('module');
import * as path from 'path';
import {URL, fileURLToPath, pathToFileURL} from 'url';
import {
Expand Down

0 comments on commit 549513c

Please sign in to comment.