Skip to content

Commit

Permalink
Throw a descriptive error if the first argument supplied to a hook wa…
Browse files Browse the repository at this point in the history
…s not a function (#6917)

closes #6903
  • Loading branch information
ranyitz authored and SimenB committed Aug 30, 2018
1 parent 8e72341 commit 66560c3
Show file tree
Hide file tree
Showing 8 changed files with 1,190 additions and 590 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Expand Up @@ -6,10 +6,12 @@

### Fixes

- `[jest-jasmine2]` Throw a descriptive error if the first argument supplied to a hook was not a function ([#6917](https://github.com/facebook/jest/pull/6917))
- `[jest-circus]` Throw a descriptive error if the first argument supplied to a hook was not a function ([#6917](https://github.com/facebook/jest/pull/6917))
- `[expect]` Fix variadic custom asymmetric matchers ([#6898](https://github.com/facebook/jest/pull/6898))
- `[jest-cli]` Fix incorrect `testEnvironmentOptions` warning ([#6852](https://github.com/facebook/jest/pull/6852))
- `[jest-each`] Prevent done callback being supplied to describe ([#6843](https://github.com/facebook/jest/pull/6843))
- `[jest-config`] Better error message for a case when a preset module was found, but no `jest-preset.js` or `jest-preset.json` at the root ([#6863](https://github.com/facebook/jest/pull/6863))
- `[jest-each]` Prevent done callback being supplied to describe ([#6843](https://github.com/facebook/jest/pull/6843))
- `[jest-config]` Better error message for a case when a preset module was found, but no `jest-preset.js` or `jest-preset.json` at the root ([#6863](https://github.com/facebook/jest/pull/6863))

### Chore & Maintenance

Expand Down

0 comments on commit 66560c3

Please sign in to comment.