From e515e1a7a41482bcd50f3e4623f21c702443cca3 Mon Sep 17 00:00:00 2001 From: mrazauskas <72159681+mrazauskas@users.noreply.github.com> Date: Thu, 30 Sep 2021 11:07:12 +0300 Subject: [PATCH 1/2] fix(cli): remove defunct `browser` option --- packages/jest-cli/src/cli/args.ts | 7 ------- 1 file changed, 7 deletions(-) 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 ' + From 9947236da2b08fbf8a58b8792706cccd63e62c0f Mon Sep 17 00:00:00 2001 From: mrazauskas <72159681+mrazauskas@users.noreply.github.com> Date: Thu, 30 Sep 2021 11:56:15 +0300 Subject: [PATCH 2/2] chore: update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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