App reorganization

This commit is contained in:
adilallo
2026-04-18 14:12:49 -06:00
parent f866d11ff8
commit e9dab04b34
288 changed files with 2698 additions and 5029 deletions
@@ -0,0 +1,31 @@
import { describe, vi } from "vitest";
import {
componentTestSuite,
type ComponentTestSuiteConfig,
} from "../utils/componentTestSuite";
import InputWithCounter from "../../app/components/controls/InputWithCounter";
type Props = React.ComponentProps<typeof InputWithCounter>;
const config: ComponentTestSuiteConfig<Props> = {
component: InputWithCounter,
name: "InputWithCounter",
props: {
label: "Community name",
placeholder: "Enter a name",
value: "",
onChange: vi.fn(),
maxLength: 50,
showHelpIcon: false,
} as Props,
requiredProps: ["value", "onChange", "maxLength"],
primaryRole: "textbox",
testCases: {
renders: true,
accessibility: true,
},
};
describe("InputWithCounter", () => {
componentTestSuite<Props>(config);
});