Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions evalboard/lib/__tests__/runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,19 @@ describe("sortArtifacts", () => {
]);
});

test("a .dmn rule ranks with the deliverables", () => {
const input = [
ref("d/artifacts/RiskRules/bindings_v2.json", "json"),
ref("d/artifacts/RiskRules/Business rule.dmn", "dmn"),
ref("d/artifacts/RiskRules/project.uiproj", "uiproj"),
];
expect(sortArtifacts(input).map((a) => a.relPath)).toEqual([
"d/artifacts/RiskRules/Business rule.dmn",
"d/artifacts/RiskRules/project.uiproj",
"d/artifacts/RiskRules/bindings_v2.json",
]);
});

test("does not mutate the input array", () => {
const input = [ref("b.txt", "txt"), ref("a.flow", "flow")];
sortArtifacts(input);
Expand Down
1 change: 1 addition & 0 deletions evalboard/lib/artifact-kinds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
export const DELIVERABLE_KINDS = new Set([
"flow",
"bpmn",
"dmn",
"uipx",
"uiproj",
"xaml",
Expand Down
Loading