diff --git a/CHANGELOG.md b/CHANGELOG.md index 363abee8a97e..89c8bd9a9d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/expect/package.json b/packages/expect/package.json index eb8484a5dce3..4afbd122f9b1 100644 --- a/packages/expect/package.json +++ b/packages/expect/package.json @@ -18,6 +18,7 @@ }, "./package.json": "./package.json", "./build/matchers": "./build/matchers.js", + "./build/spyMatchers": "./build/spyMatchers.js", "./build/toThrowMatchers": "./build/toThrowMatchers.js" }, "dependencies": { diff --git a/scripts/buildUtils.mjs b/scripts/buildUtils.mjs index a92a16df950b..7e172dd3697f 100644 --- a/scripts/buildUtils.mjs +++ b/scripts/buildUtils.mjs @@ -91,6 +91,7 @@ function getPackages() { ...(pkg.name === 'expect' ? { './build/matchers': './build/matchers.js', + './build/spyMatchers': './build/spyMatchers.js', './build/toThrowMatchers': './build/toThrowMatchers.js', } : {}),