From b7f0a046e30916545cc7bf62238f48285b6699c2 Mon Sep 17 00:00:00 2001 From: KatiaLiu Date: Wed, 25 Mar 2026 23:23:26 +0800 Subject: Add Vitest testing setup and Button component tests (#11) * Add Vitest testing setup and Button component tests - Install Vitest and related dependencies - Configure Vitest with React support - Create Button component test cases - Add test scripts to package.json - Create TESTING.md documentation - Update test comments to English for consistency * Update package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Bertrand Yuan * Update package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Bertrand Yuan * remove TESTING.md for the moment There are many parts not matched with current content. Signed-off-by: Bertrand Yuan --------- Signed-off-by: Bertrand Yuan Signed-off-by: Bertrand Yuan Co-authored-by: Bertrand Yuan Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Bertrand Yuan --- src/test/setup.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/test/setup.ts (limited to 'src/test/setup.ts') diff --git a/src/test/setup.ts b/src/test/setup.ts new file mode 100644 index 0000000..bb02c60 --- /dev/null +++ b/src/test/setup.ts @@ -0,0 +1 @@ +import '@testing-library/jest-dom/vitest'; -- cgit v1.2.3