JEST: Show coding contract names when their tests failed (#2520)

This commit is contained in:
catloversg
2026-02-22 01:20:31 +07:00
committed by GitHub
parent 42acdc6d84
commit 67fd763c30

View File

@@ -215,10 +215,12 @@ describe("Check getAnswer and solver", () => {
if (skippedContractTypes.includes(name)) {
continue;
}
const state = cct.generate();
const data = cct.getData ? cct.getData(state) : state;
const answer = cct.getAnswer(data);
expect(answer).not.toBeNull();
expect(cct.solver(state, answer)).toStrictEqual(true);
test(name, () => {
const state = cct.generate();
const data = cct.getData ? cct.getData(state) : state;
const answer = cct.getAnswer(data);
expect(answer).not.toBeNull();
expect(cct.solver(state, answer)).toStrictEqual(true);
});
}
});