diff --git a/CHANGELOG.md b/CHANGELOG.md index dba0f8a2a511..4fb9c5886151 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixes - `[@jest/types]` Mark deprecated configuration options as `@deprecated` ([#11913](https://github.com/facebook/jest/pull/11913)) +- `[jest-cli]` Improve `--help` printout by removing defunct `--browser` option ([#11914](https://github.com/facebook/jest/pull/11914)) ### Chore & Maintenance diff --git a/packages/jest-cli/src/cli/args.ts b/packages/jest-cli/src/cli/args.ts index 26d2101e24f0..85f78feedfa6 100644 --- a/packages/jest-cli/src/cli/args.ts +++ b/packages/jest-cli/src/cli/args.ts @@ -107,13 +107,6 @@ export const options = { 'Exit the test suite immediately after `n` number of failing tests.', type: 'boolean', }, - browser: { - description: - 'Respect the "browser" field in package.json ' + - 'when resolving modules. Some packages export different versions ' + - 'based on whether they are operating in node.js or a browser.', - type: 'boolean', - }, cache: { description: 'Whether to use the transform cache. Disable the cache ' +