From 222166b2a4551fd974ed30b0dd02a68d8b30a7ef Mon Sep 17 00:00:00 2001 From: Steven Hargrove Date: Wed, 12 Dec 2018 15:59:16 -0500 Subject: [PATCH] move changelog item to correct location, small edit to docs --- CHANGELOG.md | 2 +- docs/CLI.md | 4 ++-- e2e/__tests__/supports-dashed-args.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac52cd11e957..ea3b7209941f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,7 +38,6 @@ ### Fixes -- `[jest-cli]` Support dashed args ([#7497](https://github.com/facebook/jest/pull/7497)) - `[jest-cli]` [**BREAKING**] Do not use `text-summary` coverage reporter by default if other reporters are configured ([#7058](https://github.com/facebook/jest/pull/7058)) - `[jest-mock]` [**BREAKING**] Fix bugs with mock/spy result tracking of recursive functions ([#6381](https://github.com/facebook/jest/pull/6381)) - `[jest-haste-map]` [**BREAKING**] Recover files correctly after haste name collisions are fixed ([#7329](https://github.com/facebook/jest/pull/7329)) @@ -81,6 +80,7 @@ - `[jest-haste-map]` Remove legacy condition for duplicate module detection ([#7333](https://github.com/facebook/jest/pull/7333)) - `[jest-haste-map]` Fix `require` detection with trailing commas and ignore `import typeof` modules ([#7385](https://github.com/facebook/jest/pull/7385)) - `[jest-cli]` Fix to set prettierPath via config file ([#7412](https://github.com/facebook/jest/pull/7412)) +- `[jest-cli]` Support dashed args ([#7497](https://github.com/facebook/jest/pull/7497)) ### Chore & Maintenance diff --git a/docs/CLI.md b/docs/CLI.md index 44a8adc6ad5d..f5e1a1347758 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -83,14 +83,14 @@ npm test -- -u -t="ColorPicker" ## Camelcase & dashed args support -Jest supports both camelcase and dashed arg formats. Which means the following examples will have equal result: +Jest supports both camelcase and dashed arg formats. The following examples will have equal result: ```bash jest --collect-coverage jest --collectCoverage ``` -They can also be mixed: +Arguments can also be mixed: ```bash jest --update-snapshot --detectOpenHandles diff --git a/e2e/__tests__/supports-dashed-args.js b/e2e/__tests__/supports-dashed-args.js index a0c18a22ebbe..959d7a0bec69 100644 --- a/e2e/__tests__/supports-dashed-args.js +++ b/e2e/__tests__/supports-dashed-args.js @@ -29,6 +29,7 @@ test('works with passing tests', () => { 'text-summary', '--clear-mocks', '--useStderr', + '--detectOpenHandles', ]); if (result.status !== 0) { console.error(result.stderr);