Skip to content

Commit

Permalink
chore(expect): expose default matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Oct 5, 2021
1 parent 02df7d3 commit c358324
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

### Chore & Maintenance

- `[expect]` Expose default matchers ([#11932](https://github.com/facebook/jest/pull/11932))

### Performance

## 27.2.4
Expand Down
3 changes: 2 additions & 1 deletion packages/expect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"exports": {
".": "./build/index.js",
"./package.json": "./package.json",
"./build/utils": "./build/utils.js"
"./build/utils": "./build/utils.js",
"./build/matchers": "./build/matchers.js"
},
"dependencies": {
"@jest/types": "^27.2.4",
Expand Down
5 changes: 4 additions & 1 deletion scripts/buildUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ module.exports.getPackages = function getPackages() {
{},
),
...(pkg.name === 'jest-circus' ? {'./runner': './runner.js'} : {}),
...(pkg.name === 'expect' ? {'./build/utils': './build/utils.js'} : {}),
...(pkg.name === 'expect' ? {
'./build/utils': './build/utils.js',
'./build/matchers': './build/matchers.js',
} : {}),
},
`Package ${pkg.name} does not export correct files`,
);
Expand Down

0 comments on commit c358324

Please sign in to comment.