Skip to content

Commit

Permalink
change filePath type to Config.Path
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiAnAn committed Mar 15, 2021
1 parent b464cff commit cb22e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jest-util/src/requireOrImportModule.ts
@@ -1,8 +1,9 @@
import {pathToFileURL} from 'url';
import type {Config} from '@jest/types';
import interopRequireDefault from './interopRequireDefault';

export default async function requireOrImportModule<T>(
filePath: string,
filePath: Config.Path,
): Promise<T> {
let module: T;
try {
Expand Down

0 comments on commit cb22e4f

Please sign in to comment.