Better error messages for invalid queries and query filters blocks
Handle other cases where the config is invalid.
This commit is contained in:
parent
fba13b0092
commit
5861352d57
9 changed files with 29 additions and 5 deletions
2
lib/config-utils.test.js
generated
2
lib/config-utils.test.js
generated
|
|
@ -697,7 +697,7 @@ doInvalidInputTest("paths invalid type", `paths: 17`, configUtils.getPathsInvali
|
|||
doInvalidInputTest("queries uses invalid type", `
|
||||
queries:
|
||||
- uses:
|
||||
- hello: world`, configUtils.getQueryUsesInvalid);
|
||||
- hello: world`, configUtils.getQueriesMissingUses);
|
||||
function doInvalidQueryUsesTest(input, expectedErrorMessageGenerator) {
|
||||
// Invalid contents of a "queries.uses" field.
|
||||
// Should fail with the expected error message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue