@@ -2478,7 +2478,24 @@ expression: json
24782478 "$ref": "#/definitions/RuleNoConfig"
24792479 },
24802480 "jest/valid-expect": {
2481- "$ref": "#/definitions/DummyRule"
2481+ "anyOf": [
2482+ {
2483+ "$ref": "#/definitions/AllowWarnDeny"
2484+ },
2485+ {
2486+ "type": "array",
2487+ "items": [
2488+ {
2489+ "$ref": "#/definitions/AllowWarnDeny"
2490+ },
2491+ {
2492+ "$ref": "#/definitions/ValidExpectConfig"
2493+ }
2494+ ],
2495+ "maxItems": 2,
2496+ "minItems": 1
2497+ }
2498+ ]
24822499 },
24832500 "jest/valid-expect-in-promise": {
24842501 "$ref": "#/definitions/RuleNoConfig"
@@ -7767,7 +7784,24 @@ expression: json
77677784 "$ref": "#/definitions/RuleNoConfig"
77687785 },
77697786 "vitest/valid-expect": {
7770- "$ref": "#/definitions/DummyRule"
7787+ "anyOf": [
7788+ {
7789+ "$ref": "#/definitions/AllowWarnDeny"
7790+ },
7791+ {
7792+ "type": "array",
7793+ "items": [
7794+ {
7795+ "$ref": "#/definitions/AllowWarnDeny"
7796+ },
7797+ {
7798+ "$ref": "#/definitions/ValidExpectConfig"
7799+ }
7800+ ],
7801+ "maxItems": 2,
7802+ "minItems": 1
7803+ }
7804+ ]
77717805 },
77727806 "vitest/valid-expect-in-promise": {
77737807 "$ref": "#/definitions/RuleNoConfig"
@@ -14080,6 +14114,46 @@ expression: json
1408014114 },
1408114115 "additionalProperties": false
1408214116 },
14117+ "ValidExpectConfig": {
14118+ "type": "object",
14119+ "properties": {
14120+ "alwaysAwait": {
14121+ "description": "When `true`, async assertions must be awaited in all contexts (not just return statements).",
14122+ "default": false,
14123+ "type": "boolean",
14124+ "markdownDescription": "When `true`, async assertions must be awaited in all contexts (not just return statements)."
14125+ },
14126+ "asyncMatchers": {
14127+ "description": "List of matchers that are considered async and therefore require awaiting (e.g. `toResolve`, `toReject`).",
14128+ "default": [
14129+ "toResolve",
14130+ "toReject"
14131+ ],
14132+ "type": "array",
14133+ "items": {
14134+ "type": "string"
14135+ },
14136+ "markdownDescription": "List of matchers that are considered async and therefore require awaiting (e.g. `toResolve`, `toReject`)."
14137+ },
14138+ "maxArgs": {
14139+ "description": "Maximum number of arguments `expect` should be called with.",
14140+ "default": 1,
14141+ "type": "integer",
14142+ "format": "uint",
14143+ "minimum": 0.0,
14144+ "markdownDescription": "Maximum number of arguments `expect` should be called with."
14145+ },
14146+ "minArgs": {
14147+ "description": "Minimum number of arguments `expect` should be called with.",
14148+ "default": 1,
14149+ "type": "integer",
14150+ "format": "uint",
14151+ "minimum": 0.0,
14152+ "markdownDescription": "Minimum number of arguments `expect` should be called with."
14153+ }
14154+ },
14155+ "additionalProperties": false
14156+ },
1408314157 "ValidTypeof": {
1408414158 "type": "object",
1408514159 "properties": {
0 commit comments