From 5c97bf3ed9c27e1a27fbb6c81df53abab0fbb8e5 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 17 Oct 2021 19:40:48 +0200 Subject: [PATCH] allow empty string if they exist --- packages/jest-resolve/src/defaultResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-resolve/src/defaultResolver.ts b/packages/jest-resolve/src/defaultResolver.ts index 52df2242646b..1c461feab16e 100644 --- a/packages/jest-resolve/src/defaultResolver.ts +++ b/packages/jest-resolve/src/defaultResolver.ts @@ -105,7 +105,7 @@ function createPackageFilter( filteredPkg = userFilter(filteredPkg, packageDir); } - if (filteredPkg.main) { + if (filteredPkg.main != null) { return filteredPkg; }