Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(expect): Expose spyMatchers #15288

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- `[@jest/util-snapshot]` Extract utils used by tooling from `jest-snapshot` into its own package ([#15095](https://github.com/facebook/jest/pull/15095))
- `[pretty-format]` [**BREAKING**] Do not render empty string children (`''`) in React plugin ([#14470](https://github.com/facebook/jest/pull/14470))
- `[jest-each]` Introduce `%$` option to add number of the test to its title ([#14710](https://github.com/jestjs/jest/pull/14710))
- `[expect]` Export spy matchers ([#15288](https://github.com/jestjs/jest/pull/15288))

### Fixes

Expand Down
1 change: 1 addition & 0 deletions packages/expect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"./package.json": "./package.json",
"./build/matchers": "./build/matchers.js",
"./build/spyMatchers": "./build/spyMatchers.js",
"./build/toThrowMatchers": "./build/toThrowMatchers.js"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions scripts/buildUtils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function getPackages() {
...(pkg.name === 'expect'
? {
'./build/matchers': './build/matchers.js',
'./build/spyMatchers': './build/spyMatchers.js',
'./build/toThrowMatchers': './build/toThrowMatchers.js',
}
: {}),
Expand Down
Loading