Skip to content

Commit

Permalink
chore: 82.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 1, 2018
1 parent dc0d3a0 commit adea36f
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 63 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org). Except add new
rule (it is breaking changed by default).

## 82.0.0 - 2018-10-01

- Added: `jest/require-tothrow-message` rule.
- Added: `jest/no-alias-methods` rule.
- Chore: minimum require `eslint-plugin-jest` version is now `^21.24.0`.

## 81.0.0 - 2018-09-26

- Chore: minimum require `babel-eslint` version is now `^10.0.0`.
Expand Down
25 changes: 25 additions & 0 deletions lib/config/rules/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,50 @@
// See https://github.com/facebook/jest/tree/master/packages/eslint-plugin-jest

module.exports = {
// Enforce consistent test or it keyword
"jest/consistent-test-it": "error",
// Enforce assertion to be made in a test body
"jest/expect-expect": "error",
// Disallow capitalized test names
"jest/lowercase-name": "error",
// Disallow alias methods
"jest/no-alias-methods": "error",
// Disallow disabled tests
"jest/no-disabled-tests": "error",
// Disallow focused tests
"jest/no-focused-tests": "error",
// Disallow setup and teardown hooks
"jest/no-hooks": "off",
// Disallow identical titles
"jest/no-identical-title": "error",
// Disallow Jasmine globals
"jest/no-jasmine-globals": "error",
// Disallow importing `jest`
"jest/no-jest-import": "error",
// Disallow large snapshots
"jest/no-large-snapshots": "off",
// Disallow using `f` & `x` prefixes to define focused/skipped tests
"jest/no-test-prefixes": "error",
// Disallow explicitly returning from tests
"jest/no-test-return-statement": "off",
// Suggest using `expect.assertions()` OR `expect.hasAssertions()`
"jest/prefer-expect-assertions": "off",
// Suggest using `toStrictEqual()`
"jest/prefer-strict-equal": "off",
// Suggest using `toBeNull()`
"jest/prefer-to-be-null": "error",
// Suggest using `toBeUndefined()`
"jest/prefer-to-be-undefined": "error",
// Suggest using `toHaveLength()`
"jest/prefer-to-have-length": "error",
// Suggest using `toMatchInlineSnapshot()`
"jest/prefer-inline-snapshots": "off",
// Require that `toThrow()` and `toThrowError()` includes a message
"jest/require-tothrow-message": "error",
// Enforce valid `describe()` callback
"jest/valid-describe": "error",
// Enforce having return statement when testing with promises
"jest/valid-expect-in-promise": "error",
// Enforce valid `expect()` usage
"jest/valid-expect": "error"
};
129 changes: 69 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit adea36f

Please sign in to comment.