test: tighten barnacle classifier assertions

This commit is contained in:
Peter Steinberger
2026-05-09 10:35:25 +01:00
parent 560c7440fb
commit b6136e38a9

View File

@@ -246,13 +246,12 @@ describe("barnacle-auto-response", () => {
file("README.md"),
]);
expect(labels).toEqual(
expect.arrayContaining([
candidateLabels.blankTemplate,
candidateLabels.lowSignalDocs,
candidateLabels.docsDiscoverability,
]),
);
expect(labels).toEqual([
candidateLabels.blankTemplate,
candidateLabels.needsRealBehaviorProof,
candidateLabels.lowSignalDocs,
candidateLabels.docsDiscoverability,
]);
});
it("does not treat template boilerplate as behavior evidence for test-only churn", () => {
@@ -260,9 +259,11 @@ describe("barnacle-auto-response", () => {
file("src/gateway/foo.test.ts"),
]);
expect(labels).toEqual(
expect.arrayContaining([candidateLabels.blankTemplate, candidateLabels.testOnlyNoBug]),
);
expect(labels).toEqual([
candidateLabels.blankTemplate,
candidateLabels.needsRealBehaviorProof,
candidateLabels.testOnlyNoBug,
]);
});
it("labels external PRs that are missing real behavior proof", () => {