refactor: tighten types and reuse instrument UI
This commit is contained in:
@@ -6,7 +6,7 @@ import { MantineProvider } from "@mantine/core";
|
||||
// eslint-disable-next-line testing-library/no-manual-cleanup -- Vitest globals are disabled, so RTL cannot register its automatic afterEach cleanup.
|
||||
import { cleanup, render, screen } from "@testing-library/react";
|
||||
import { cssVariablesResolver, theme } from "@wealthledger/ui/theme";
|
||||
import { afterEach, expect, it } from "vitest";
|
||||
import { afterEach, assert, expect, it } from "vitest";
|
||||
|
||||
import type { AccountPagePosition, AccountPagePositionSection } from "../../model/positions";
|
||||
|
||||
@@ -76,6 +76,7 @@ it("keeps expanded positions vertical while other positions adapt to the viewpor
|
||||
expect(current.height, context).toBeGreaterThan(0);
|
||||
if (index === 0) continue;
|
||||
const previous = bounds[index - 1];
|
||||
assert.isDefined(previous);
|
||||
|
||||
if (kind === "other" && width === 1280) {
|
||||
// eslint-disable-next-line vitest/no-conditional-expect -- The fixed table case selects the expected outcome; every case asserts its own branch.
|
||||
|
||||
Reference in New Issue
Block a user