chore: add typed ESLint checks #18
Frontend security / security (push) Successful in 9s
Frontend verify / verify (push) Failing after 17m37s
Conventional commits / commits (pull_request) Successful in 26s
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Failing after 22m42s

Refs WealthLedger/main#18. Keep Biome; add no Prettier dependencies.
This commit is contained in:
2026-09-28 05:52:29 +03:00
parent c1b08735e3
commit 851457e03c
38 changed files with 2914 additions and 155 deletions
@@ -4,6 +4,22 @@ import { assert, describe, expect, it } from "vitest";
import { EntryCard } from "./EntryCard";
describe("EntryCard", () => {
it("does not leak a numeric zero from an absent action", () => {
render(
<MantineProvider>
<EntryCard
title="Пример"
metadata="Описание"
initial="У"
value="—"
valueLabel="Неизвестно"
tone="neutral"
actions={0}
/>
</MantineProvider>,
);
expect(screen.queryByText("0")).not.toBeInTheDocument();
});
it("keeps a failed image fallback until a new source is supplied", () => {
const props = {
title: "Пример",
+1 -1
View File
@@ -58,7 +58,7 @@ const EntryCard: FC<EntryCardProps> = (props) => {
>
{props.valueLabel}
</Text>
{props.actions && (
{Boolean(props.actions) && (
<div className={classes.actions}>{props.actions}</div>
)}
</div>