actually fix jq filter

This commit is contained in:
tristan 2024-01-03 12:16:54 +00:00
parent a60eba976f
commit cc834eda99

View file

@ -2,15 +2,12 @@ let
emotes = import ./emotes.nix;
in rec {
failures = ''
[. | map(select(.results[].results[].success == false))[]
| {
(.path): .results | map(select(.results[].success == false))[]
| {
(.component): .results | map(select(.success == false))[]
| {
(.msg): {success, expected, actual}
}
}
[.[] | {
(.path): [.results[] | {
(.component): [.results[] | {
(.msg): select(.success == false) | {expected, actual, success}
}] | add
}] | add
}] | add
'';
overview = failures;