Skip to content

Commit

Permalink
Update how browserslist-config package is looked up
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oandregal committed Mar 14, 2019
1 parent 4b8c32d commit eb88287
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/unit/jest.config.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down

0 comments on commit eb88287

Please sign in to comment.