diff --git a/CHANGELOG.md b/CHANGELOG.md index 865d3a5fca39..a4d2fba6cb5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,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 8cfc199be6fa..ab568569a1ec 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -263,7 +263,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 de8a07b7adc3..e71d633a4b6d 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`.