From eb8828761929ee225b178ec8fe55db73a1a34a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Wed, 13 Mar 2019 17:29:36 +0100 Subject: [PATCH] Update how browserslist-config package is looked up It is only used by babel-preset-default. It is looked up by require itself so we need to tell Jest not to substitute with anything. --- test/unit/jest.config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/jest.config.json b/test/unit/jest.config.json index 3b7d0ca732a994..a445494fb31ec9 100644 --- a/test/unit/jest.config.json +++ b/test/unit/jest.config.json @@ -1,6 +1,7 @@ { "rootDir": "../../", "moduleNameMapper": { + "@wordpress\\/(browserslist-config)$": "@wordpress/$1", "@wordpress\\/(block-serialization-spec-parser|is-shallow-equal)$": "packages/$1", "@wordpress\\/([a-z0-9-]+)$": "packages/$1/src" },