diff --git a/CHANGELOG.md b/CHANGELOG.md index 74f5f4b96db2..3d29b7cf0674 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -111,6 +111,7 @@ ### Fixes +- `[docs]` Fixed error in documentation for expect.not.arrayContaining(array). ([#6491](https://github.com/facebook/jest/pull/6491)) - `[jest-cli]` Add check to make sure one or more tests have run before notifying when using `--notify` ([#6495](https://github.com/facebook/jest/pull/6495)) - `[jest-cli]` Pass `globalConfig` as a parameter to `globalSetup` and `globalTeardown` functions ([#6486](https://github.com/facebook/jest/pull/6486)) - `[jest-config]` Add missing options to the `defaults` object ([#6428](https://github.com/facebook/jest/pull/6428)) diff --git a/docs/ExpectAPI.md b/docs/ExpectAPI.md index c32d387644e6..fc60a8775b06 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -293,7 +293,7 @@ The `expect.hasAssertions()` call ensures that the `prepareState` callback actua ### `expect.not.arrayContaining(array)` -`expect.not.arrayContaining(array)` matches a received array which contains none of the elements in the expected array. That is, the expected array **is not a subset** of the received array. +`expect.not.arrayContaining(array)` matches a received array which does not contain all of the elements in the expected array. That is, the expected array **is not a subset** of the received array. It is the inverse of `expect.arrayContaining`. diff --git a/website/versioned_docs/version-23.0/ExpectAPI.md b/website/versioned_docs/version-23.0/ExpectAPI.md index 3bb9ff873df7..b3fb4d1cea43 100644 --- a/website/versioned_docs/version-23.0/ExpectAPI.md +++ b/website/versioned_docs/version-23.0/ExpectAPI.md @@ -264,7 +264,7 @@ The `expect.hasAssertions()` call ensures that the `prepareState` callback actua ### `expect.not.arrayContaining(array)` -`expect.not.arrayContaining(array)` matches a received array which contains none of the elements in the expected array. That is, the expected array **is not a subset** of the received array. +`expect.not.arrayContaining(array)` matches a received array which does not contain all of the elements in the expected array. That is, the expected array **is not a subset** of the received array. It is the inverse of `expect.arrayContaining`.