Skip to content

Commit

Permalink
move changelog item to correct location, small edit to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Hargrove committed Dec 12, 2018
1 parent ec9ba73 commit 222166b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions e2e/__tests__/supports-dashed-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ test('works with passing tests', () => {
'text-summary',
'--clear-mocks',
'--useStderr',
'--detectOpenHandles',
]);
if (result.status !== 0) {
console.error(result.stderr);
Expand Down

0 comments on commit 222166b

Please sign in to comment.