We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
expect
1 parent 7bd9cca commit c89c649Copy full SHA for c89c649
2 files changed
configs/jest.js
@@ -31,7 +31,7 @@ async function getJestRecommendedConfig() {
31
32
"jest/consistent-test-it": "error",
33
34
- "jest/expect-expect": "error",
+ "jest/expect-expect": ["error", { assertFunctionNames: ["expect*"] }],
35
36
// No need
37
// "jest/max-expects": "error",
validation/code.test.js
@@ -2,6 +2,10 @@
2
* @jest-environment jsdom
3
*/
4
5
+function expectSomething() {
6
+ expect(1).toBe(1);
7
+}
8
+
9
describe("name", () => {
10
it("test #1", () => {
11
const data = { type: "coords", x: 1, y: 2 };
@@ -19,4 +23,8 @@ describe("name", () => {
19
23
expect(data.type).toBe(type);
20
24
expect(data.y).toBe(coords.y);
21
25
});
26
27
+ it("test #3", () => {
28
+ expectSomething();
29
+ });
22
30
0 commit comments