Skip to content

Commit

Permalink
rollback breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 28, 2021
1 parent fabc330 commit c4ea5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-util/src/requireOrImportModule.ts
Expand Up @@ -14,7 +14,7 @@ export default async function requireOrImportModule<T>(
filePath: Config.Path,
applyInteropRequireDefault = true,
): Promise<T> {
if (!isAbsolute(filePath)) {
if (!isAbsolute(filePath) && filePath[0] === '.') {
throw new Error(
`Jest: requireOrImportModule path must be absolute, was "${filePath}"`,
);
Expand Down

0 comments on commit c4ea5bf

Please sign in to comment.