test(compiler-cli): fix TEST_CASES.json schema (#39939)
The schema accidentally included the `expectedErrors` and `extraCheck` properties below the `files` property instead of below the `expectations` property. PR Close #39939
This commit is contained in:
parent
ef892743ec
commit
2afa3801bc
|
@ -73,67 +73,67 @@
|
|||
"title": "A path (relative to the test case) where an file containing expected output can be found. (The generated path is inferred from this.)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"expectedErrors": {
|
||||
"title": "A collection of expected error messages for this test-case.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "An array of strings that should appear in the error message.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"title": "A regular expression that should match the error message",
|
||||
"type": "string"
|
||||
},
|
||||
"location": {
|
||||
"title": "An optional regular expression that should match the location of the error",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"expectedErrors": {
|
||||
"title": "A collection of expected error messages for this test-case.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "An array of strings that should appear in the error message.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"message": {
|
||||
"title": "A regular expression that should match the error message",
|
||||
"type": "string"
|
||||
},
|
||||
"required": [
|
||||
"message"
|
||||
]
|
||||
}
|
||||
},
|
||||
"extraChecks": {
|
||||
"title": "Additional checks to run against the generated code.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"title": "The name of a function to run as an additional check on the source.",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"title": "An array whose first element is the name of a function to run as an additional check, and subsequent elements are args for this function",
|
||||
"type": "array"
|
||||
}
|
||||
]
|
||||
}
|
||||
"location": {
|
||||
"title": "An optional regular expression that should match the location of the error",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"message"
|
||||
]
|
||||
}
|
||||
},
|
||||
"extraChecks": {
|
||||
"title": "Additional checks to run against the generated code.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"title": "The name of a function to run as an additional check on the source.",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"title": "An array whose first element is the name of a function to run as an additional check, and subsequent elements are args for this function",
|
||||
"type": "array"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"compilerOptions": {
|
||||
"title": "Additional options to pass to the TypeScript compiler",
|
||||
"type": "object"
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"title": "Additional options to pass to the Angular compiler",
|
||||
"type": "object"
|
||||
},
|
||||
"focusTest": {
|
||||
"title": "Set to true to focus on this test - equivalent to jasmine's `fit()` function",
|
||||
"type": "boolean"
|
||||
},
|
||||
"excludeTest": {
|
||||
"title": "Set to true to exclude this test - equivalent to jasmine's `xit()` function",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"compilerOptions": {
|
||||
"title": "Additional options to pass to the TypeScript compiler",
|
||||
"type": "object"
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"title": "Additional options to pass to the Angular compiler",
|
||||
"type": "object"
|
||||
},
|
||||
"focusTest": {
|
||||
"title": "Set to true to focus on this test - equivalent to jasmine's `fit()` function",
|
||||
"type": "boolean"
|
||||
},
|
||||
"excludeTest": {
|
||||
"title": "Set to true to exclude this test - equivalent to jasmine's `xit()` function",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue