summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKatiaLiu <k1158113341@163.com>2026-03-25 23:23:26 +0800
committerGitHub <noreply@github.com>2026-03-25 23:23:26 +0800
commitb7f0a046e30916545cc7bf62238f48285b6699c2 (patch)
treee5b012cc17ab529a3c1c6eaef9ed1a44da1773e6 /src/test
parent74a4c4a2b7583747fe358bc899f4d012e958dc4e (diff)
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 <yuanweijie1456@outlook.com> * Update package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Bertrand Yuan <yuanweijie1456@outlook.com> * remove TESTING.md for the moment There are many parts not matched with current content. Signed-off-by: Bertrand Yuan <me@bertyuan.com> --------- Signed-off-by: Bertrand Yuan <yuanweijie1456@outlook.com> Signed-off-by: Bertrand Yuan <me@bertyuan.com> Co-authored-by: Bertrand Yuan <me@bertyuan.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Bertrand Yuan <bert.yuan@outlook.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/setup.ts1
1 files changed, 1 insertions, 0 deletions
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';