Report a configuration error when glob is invalid

This commit is contained in:
Jeroen Engels 2024-02-23 21:47:19 +01:00
parent b9f0160325
commit 2e82646094

View File

@ -86,6 +86,14 @@ a = 1
]
}
]
, test "Requesting invalid globs should result in a configuration error" <|
\() ->
createRule
(Rule.withExtraFilesModuleVisitor [ "a.txt", "c.txt" ] (reportsFileNames "A"))
|> Review.Test.expectConfigurationError
{ message = "err"
, details = [ "details" ]
}
]