Loaded vitest@4.1.8 and @vitest/coverage-v8@4.1.6 . Running mixed versions is not supported and may lead into bugs Update your dependencies and make sure the versions match.  RUN  v4.1.8 E:/np-dms/lcbp3/frontend Coverage enabled with v8 ✓ lib/api/__tests__/admin.test.ts (10 tests) 6025ms ✓ ควร return array of users  538ms ✓ ควร return users ที่มี publicId, username, email  602ms ✓ ควร create user ใหม่และ return user object  903ms ✓ ควร assign userId ใหม่ให้ user  810ms ✓ ควร return array of organizations  511ms ✓ ควร return organizations ที่มี publicId, orgCode, orgName  512ms ✓ ควร create organization ใหม่และ return org object  609ms ✓ ควร assign orgId ใหม่ให้ organization  603ms ✓ ควร return array of audit logs  484ms ✓ ควร return logs ที่มี publicId, userName, action  444ms stderr | components/admin/__tests__/user-dialog.test.tsx > UserDialog > creates a user with required fields and selected role Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}. ✓ components/workflow/__tests__/integrated-banner.test.tsx (3 tests) 19140ms ✓ renders metadata, priority, workflow state, and legacy actions  5616ms ✓ requires comment for reject action  12129ms ✓ uses workflow mutation when instanceId is provided  1186ms stderr | components/admin/__tests__/user-dialog.test.tsx > UserDialog > pre-fills existing user and submits update without empty password Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}. ✓ components/correspondences/detail.test.tsx (7 tests) 16897ms ✓ ควรเรนเดอร์รายละเอียดเอกสารและข้อมูลพื้นฐานได้ถูกต้อง  3087ms ✓ ควรแสดงปุ่มและส่งคำขอเมื่อกด Submit for Review ในกรณีที่เป็น DRAFT  7163ms ✓ ควรแสดงข้อความเตือนภัยและซ่อนปุ่มการกระทำบางอย่างหากเอกสารถูกยกเลิก  1607ms ✓ ควรแสดงปุ่ม Approve และ Reject ในกรณีที่เอกสารเป็น IN_REVIEW  1246ms ✓ ควรเปิดการกดยืนยันการอนุมัติและส่งความคิดเห็นได้ถูกต้อง  1858ms ✓ ควรเปิดส่วนยกเลิกเอกสารและส่งเหตุผลการยกเลิกได้ถูกต้อง  1776ms ✓ components/correspondences/form.test.tsx (2 tests) 20803ms ✓ keeps edit prefilled values after mount (no reset on initial render)  15496ms ✓ keeps dependent fields intact after async effects (reset guard)  5297ms stderr | components/admin/__tests__/user-dialog.test.tsx > UserDialog > closes when cancel is clicked Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}. ✓ components/admin/__tests__/user-dialog.test.tsx (3 tests) 30378ms ✓ creates a user with required fields and selected role  21875ms ✓ pre-fills existing user and submits update without empty password  5818ms ✓ closes when cancel is clicked  2671ms ✓ components/rfas/__tests__/form.test.tsx (27 tests) 35172ms ✓ should render form with all required fields  5058ms ✓ should render optional fields  2348ms ✓ should render submit button  2899ms ✓ should render AI suggestion button  2001ms ✓ should show validation error for empty project  4178ms ✓ should show validation error for empty contract  1506ms ✓ should show validation error for empty discipline  2037ms ✓ should show validation error for empty type  1504ms ✓ should show validation error for short subject  2441ms ✓ should show validation error for empty to organization  2348ms ✓ should allow subject input  343ms ✓ should allow description input  926ms ✓ should allow body input  640ms ✓ should allow remarks input  691ms ✓ should render shop drawing section  1140ms ✓ should render as-built drawing section  584ms ✓ should show search input for shop drawings  478ms ✓ should show search input for as-built drawings  812ms ✓ should show preview section when form is valid  1128ms ✓ should display preview number  1163ms ✓ should call create mutation on valid submit  570ms ✓ should show loading state during submission  331ms stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรแสดงรายละเอียดผู้ใช้ใน DropdownMenuContent (forceMount) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรแสดงรายละเอียดผู้ใช้ใน DropdownMenuContent (forceMount) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Profile เมื่อคลิกเมนู Profile The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Profile เมื่อคลิกเมนู Profile The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Profile เมื่อคลิกเมนู Profile The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Profile เมื่อคลิกเมนู Profile The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Settings เมื่อคลิกเมนู Settings The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Settings เมื่อคลิกเมนู Settings The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) ❯ components/transmittal/__tests__/transmittal-form.test.tsx (3 tests | 1 failed) 48965ms ✓ renders main sections and supports cancel navigation  13809ms ✓ shows validation errors when required fields are missing  5018ms  × submits cleaned transmittal payload and navigates to created record 30129ms stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Settings เมื่อคลิกเมนู Settings The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรเปลี่ยนเส้นทางไปหน้า Settings เมื่อคลิกเมนู Settings The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรออกจากระบบและเปลี่ยนเส้นทางไปหน้า Login เมื่อคลิกเมนู Log out The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรออกจากระบบและเปลี่ยนเส้นทางไปหน้า Login เมื่อคลิกเมนู Log out The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรออกจากระบบและเปลี่ยนเส้นทางไปหน้า Login เมื่อคลิกเมนู Log out The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) stderr | components/layout/__tests__/user-nav.test.tsx > UserNav Component > ควรออกจากระบบและเปลี่ยนเส้นทางไปหน้า Login เมื่อคลิกเมนู Log out The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) The current testing environment is not configured to support act(...) ✓ components/layout/__tests__/user-nav.test.tsx (5 tests) 21541ms ✓ ควรเรนเดอร์อักษรย่อชื่อผู้ใช้ได้อย่างถูกต้อง  1077ms ✓ ควรแสดงรายละเอียดผู้ใช้ใน DropdownMenuContent (forceMount)  8143ms ✓ ควรเปลี่ยนเส้นทางไปหน้า Profile เมื่อคลิกเมนู Profile  5057ms ✓ ควรเปลี่ยนเส้นทางไปหน้า Settings เมื่อคลิกเมนู Settings  4686ms ✓ ควรออกจากระบบและเปลี่ยนเส้นทางไปหน้า Login เมื่อคลิกเมนู Log out  2491ms ✓ components/admin/__tests__/organization-dialog.test.tsx (8 tests) 18755ms ✓ ควรเรนเดอร์ Dialog เมื่อ open เป็น true  3223ms ✓ ควรแสดง title "New Organization" เมื่อไม่มี organization prop  905ms ✓ ควรแสดง title "Edit Organization" เมื่อมี organization prop  1902ms ✓ ควรแสดงปุ่ม Cancel และ Create Organization สำหรับ New  6580ms ✓ ควรแสดงปุ่ม Save Changes สำหรับ Edit  1732ms ✓ ควรเรียก onOpenChange(false) เมื่อคลิก Cancel  955ms ✓ ควรแสดง validation error เมื่อ submit form ว่างเปล่า  3236ms stderr | components/admin/reference/__tests__/generic-crud-table.test.tsx > GenericCrudTable > creates a new item from dialog form Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}. stderr | components/admin/reference/__tests__/generic-crud-table.test.tsx > GenericCrudTable > creates a new item from dialog form Checkbox is changing from controlled to uncontrolled. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component. ✓ components/admin/reference/__tests__/generic-crud-table.test.tsx (3 tests) 12930ms ✓ renders data rows returned by fetchFn  1758ms ✓ renders empty state for wrapped empty data  328ms ✓ creates a new item from dialog form  10815ms ✓ components/common/__tests__/file-preview-modal.test.tsx (6 tests) 13060ms ✓ renders iframe for PDF MIME type  5917ms ✓ renders img for image MIME type  1926ms ✓ shows download link for unsupported MIME type (no iframe or img)  1416ms ✓ calls onClose when close button is clicked  2343ms ✓ calls onUnavailable when API returns 404  1288ms stderr | components/admin/__tests__/sidebar.test.tsx > AdminMobileSidebar > opens mobile navigation from trigger button Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}. ✓ components/admin/__tests__/sidebar.test.tsx (3 tests) 12514ms ✓ auto-expands the active menu and renders child links  6461ms ✓ toggles a collapsed menu on click  3158ms ✓ opens mobile navigation from trigger button  2844ms ✓ components/numbering/__tests__/manual-override-form.test.tsx (12 tests) 13994ms ✓ should render form with all required fields  2276ms ✓ should render with default projectId from props  634ms ✓ should show validation error for empty project  1628ms ✓ should show validation error for empty originator  599ms ✓ should show validation error for empty recipient  847ms ✓ should show validation error for empty type  1086ms ✓ should show validation error for empty new number  429ms ✓ should show validation error for short reason  888ms ✓ should submit form with valid data  2684ms ✓ should show error toast on submission failure  1762ms ✓ should disable submit button while loading  330ms ✓ should reset form after successful submission  634ms ✓ components/admin/ai/__tests__/prompt-version-history.test.tsx (2 tests) 4778ms ✓ renders loading and empty states  499ms ✓ renders versions and triggers version actions  4250ms ✓ components/layout/__tests__/sidebar.test.tsx (4 tests) 4149ms ✓ ควร render sidebar พร้อม navigation items  678ms ✓ ควรแสดง Admin Panel เมื่อ user เป็น ADMIN  606ms ✓ ควร render mobile sidebar พร้อม navigation items  2650ms ✓ components/admin/security/__tests__/rbac-matrix.test.tsx (3 tests) 5971ms ✓ renders roles and permissions from API data  2818ms ✓ saves pending permission changes  2860ms ✓ components/admin/ai/__tests__/ocr-engine-selector.test.tsx (3 tests) 5278ms ✓ renders OCR engine data from admin service  1398ms ✓ selects a non-active OCR engine and refreshes list  3766ms ✓ components/workflows/__tests__/dsl-editor.test.tsx (5 tests) 8361ms ✓ calls workflowApi.validateDSL when Validate button is clicked  5000ms ✓ calls onValidationChange(true) when validation returns errors  1652ms ✓ calls onValidationChange(false) when validation returns valid  551ms ✓ calls onValidationChange(true) on server error  672ms ✓ does not call onValidationChange when prop is not provided  459ms stderr | components/layout/__tests__/layout-widgets.test.tsx > layout widgets > ProjectSwitcher ควรเลือก project และ global ได้ In HTML,
cannot be a child of > cannot contain a nested
. See this log for the ancestor stack trace. ✓ components/layout/__tests__/layout-widgets.test.tsx (8 tests) 7287ms ✓ Sidebar ควรแสดงเมนู admin และ collapse label ได้  3921ms ✓ GlobalSearch ควร submit query และเปิด suggestion route ได้  1746ms ✓ ProjectSwitcher ควร auto-select เมื่อมี project เดียวและแสดง loading/empty state ได้  544ms ✓ NotificationsDropdown ควรแสดง loading และ empty state ได้  424ms ✓ UserMenu ควรแสดงข้อมูล session และ logout กลับ login  386ms ✓ components/common/__tests__/pagination.test.tsx (6 tests) 7973ms ✓ ควรเรนเดอร์ข้อมูลหน้าปัจจุบัน หน้าทั้งหมด และรายการทั้งหมดสำเร็จ  4676ms ✓ ควร disable ปุ่ม Previous เมื่ออยู่หน้าแรก  983ms ✓ ควร disable ปุ่ม Next เมื่ออยู่หน้าสุดท้าย  346ms ✓ ควรเปลี่ยนหน้าเมื่อคลิกปุ่ม Previous  698ms ✓ ควรเปลี่ยนหน้าเมื่อคลิกหมายเลขหน้าโดยตรง  996ms ✓ components/layout/__tests__/user-menu.test.tsx (3 tests) 3815ms ✓ ควร render user menu เมื่อมี user  3599ms ✓ components/workflow/__tests__/workflow-lifecycle.test.tsx (5 tests) 4447ms ✓ renders loading, error, and empty states  333ms ✓ renders history steps and opens available attachments  2651ms ✓ uploads and removes pending workflow step attachments  1264ms ✓ components/ui/__tests__/button.test.tsx (17 tests) 4053ms ✓ should render with default variant and size  1614ms ✓ should render destructive variant  483ms ✓ should render outline variant  418ms ✓ components/layout/__tests__/navbar.test.tsx (5 tests) 3423ms ✓ ควรเรนเดอร์ header ได้ถูกต้อง  1714ms ✓ ควรเรียก toggleSidebar เมื่อคลิกปุ่ม menu  1184ms ✓ components/common/__tests__/confirm-dialog.test.tsx (2 tests) 3786ms ✓ ควรเรนเดอร์เนื้อหาและปุ่มต่างๆ ได้อย่างถูกต้องเมื่อเปิดใช้งาน  2595ms ✓ ควรเรียก onConfirm เมื่อกดปุ่มยืนยันสำเร็จ  1182ms ✓ components/layout/__tests__/global-search.test.tsx (4 tests) 3811ms ✓ ควร render search input  414ms ✓ ควรแสดง loading spinner เมื่อกำลังโหลด  3025ms ✓ components/drawings/__tests__/card.test.tsx (19 tests) 3428ms ✓ should render drawing card with data  565ms ✓ should display revision  561ms ✓ should display volume page when present  389ms ✓ components/numbering/__tests__/sequence-viewer.test.tsx (13 tests) 3967ms ✓ should render loading state initially  1194ms ✓ should render sequences after successful fetch  566ms ✓ should handle wrapped response with data property  349ms ✓ should filter sequences by year  395ms ✓ should filter sequences by type  371ms ✓ should display discipline badge when disciplineId > 0  335ms ✓ components/rfas/__tests__/detail.test.tsx (19 tests) 4725ms ✓ should render RFA detail with data  867ms ✓ should render RFA items table  304ms ✓ should show empty state when no items  493ms ✓ should handle missing project name  358ms ✓ should open approve dialog when Approve clicked  606ms ✓ should handle missing correspondence number  334ms ✓ components/layout/__tests__/notifications-dropdown.test.tsx (3 tests) 2903ms ✓ ควร render notification bell icon  2148ms ✓ ควรแสดง "No new notifications" เมื่อไม่มี notification  562ms ✓ components/layout/__tests__/header.test.tsx (1 test) 4183ms ✓ renders application title and composed controls  4174ms ✓ components/admin/ai/__tests__/ocr-sandbox-prompt-manager.test.tsx (3 tests) 4438ms ✓ ควร render sandbox tab พร้อม project, contract, engine และ history  2876ms ✓ ควรสลับไป editor และบันทึก prompt version ได้  706ms ✓ ควร load template จาก history เข้า editor  766ms ✓ components/ai/__tests__/ai-chat-panel.test.tsx (5 tests) 2184ms ✓ ควรเรนเดอร์คอมโพเนนต์อย่างถูกต้อง  1077ms ✓ ควรซ่อนปุ่มล้างประวัติการสนทนาเมื่อไม่มีข้อความ  301ms ✓ ควรแสดงปุ่มล้างประวัติการสนทนาเมื่อมีข้อความในประวัติและคลิกเพื่อล้างข้อมูลได้  338ms ✓ components/admin/ai/__tests__/sandbox-tabs.test.tsx (2 tests) 3324ms ✓ ควร render 3-step sandbox testing interface  2352ms ✓ ควร disabled ปุ่ม Run OCR เมื่อไม่มีไฟล์  879ms ✓ components/admin/ai/__tests__/prompt-type-dropdown.test.tsx (2 tests) 4407ms ✓ ควร render dropdown สำหรับเลือกประเภทพรอมต์  3238ms ✓ ควร disabled dropdown เมื่อ disabled=true  1161ms ✓ components/layout/__tests__/project-switcher.test.tsx (3 tests) 3060ms ✓ ควร render skeleton เมื่อกำลังโหลด  2667ms ✓ ควรแสดง project name เป็น text เมื่อมี project เดียว  378ms ✓ components/rfas/__tests__/list.test.tsx (11 tests) 3147ms ✓ should render RFA list with data  1161ms ✓ should display formatted dates  369ms ✓ should display status badges  458ms ✓ should render action buttons for each row  506ms stderr | components/admin/ai/__tests__/context-config-editor.test.tsx > ContextConfigEditor > ควร render form สำหรับตั้งค่าบริบทข้อมูล An update to ContextConfigEditor inside a test was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...): act(() => { /* fire events that update state */ }); /* assert on the output */ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act stderr | components/admin/ai/__tests__/context-config-editor.test.tsx > ContextConfigEditor > ควร render form สำหรับตั้งค่าบริบทข้อมูล An update to ContextConfigEditor inside a test was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...): act(() => { /* fire events that update state */ }); /* assert on the output */ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act ✓ hooks/__tests__/use-master-data.test.ts (15 tests) 2145ms ✓ ควรดึงข้อมูลองค์กรสำเร็จ  403ms stderr | components/admin/ai/__tests__/context-config-editor.test.tsx > ContextConfigEditor > ควร disabled ปุ่มบันทึกเมื่อ isSaving=true An update to ContextConfigEditor inside a test was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...): act(() => { /* fire events that update state */ }); /* assert on the output */ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act stderr | components/admin/ai/__tests__/context-config-editor.test.tsx > ContextConfigEditor > ควร disabled ปุ่มบันทึกเมื่อ isSaving=true An update to ContextConfigEditor inside a test was not wrapped in act(...). When testing, code that causes React state updates should be wrapped into act(...): act(() => { /* fire events that update state */ }); /* assert on the output */ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act ✓ components/admin/ai/__tests__/context-config-editor.test.tsx (2 tests) 2786ms ✓ ควร render form สำหรับตั้งค่าบริบทข้อมูล  1814ms ✓ ควร disabled ปุ่มบันทึกเมื่อ isSaving=true  962ms ✓ hooks/ai/__tests__/use-intent-classification.test.ts (9 tests) 1382ms ✓ ควรดึง definitions สำเร็จ  445ms ✓ components/response-code/ResponseCodeSelector.test.tsx (2 tests) 3248ms ✓ renders the trigger with placeholder text  2677ms ✓ renders a custom placeholder when provided  561ms ✓ components/numbering/__tests__/metrics-dashboard.test.tsx (10 tests) 1577ms ✓ should render metrics after successful fetch  333ms ✓ components/ai/__tests__/ai-suggestion-button.test.tsx (2 tests) 2198ms ✓ ควร disable และแสดงข้อความ fallback เมื่อ AI ถูกปิด  2066ms ✓ components/search/__tests__/filters.test.tsx (7 tests) 9346ms ✓ ควร render filters card  1293ms ✓ ควรแสดง Document Type checkboxes  928ms ✓ ควรแสดง active count badge เมื่อมี filters  3774ms ✓ ควรไม่แสดง active count badge เมื่อไม่มี filters  1088ms ✓ ควรแสดง Clear all filters button เมื่อมี active filters  1181ms ✓ ควรไม่แสดง Clear all filters button เมื่อไม่มี active filters  757ms ✓ components/common/__tests__/status-badge.test.tsx (5 tests) 1029ms ✓ ควรเรนเดอร์ Draft สำหรับสถานะ DRAFT ได้อย่างถูกต้อง  603ms ✓ hooks/__tests__/use-delegation.test.ts (6 tests) 881ms ✓ ควรดึงข้อมูล delegations ของฉันสำเร็จ  623ms ✓ components/correspondences/tag-manager.test.tsx (5 tests) 4994ms ✓ ควรแสดง loading state เมื่อกำลังโหลดข้อมูล tag  408ms ✓ ควรเรียก remove mutation เมื่อคลิกปุ่มลบ tag และมีสิทธิ์แก้ไข  3006ms ✓ ควรเปิดส่วนเลือก tag และแสดง tag ที่พร้อมให้เพิ่มเมื่อคลิก Add Tag  1371ms ✓ components/layout/__tests__/theme-toggle.test.tsx (5 tests) 921ms ✓ ควรเรียก setTheme("light") เมื่อคลิกขณะ theme เป็น dark  380ms ✓ hooks/__tests__/use-workflow-action.test.ts (8 tests) 1399ms ✓ Q2 (503): should show "ระบบยุ่ง" toast when Redlock Fail-closed  390ms ✓ components/correspondences/list.test.tsx (4 tests) 1017ms ✓ ควรเรนเดอร์รายชื่อเอกสารและหัวตารางได้ถูกต้อง  543ms ✓ components/circulation/__tests__/circulation-list.test.tsx (9 tests) 1182ms ✓ ควรเรนเดอร์ DataTable ได้ถูกต้อง  380ms ✓ hooks/__tests__/use-drawing.test.ts (10 tests) 1056ms ✓ should fetch CONTRACT drawings successfully  346ms ✓ hooks/__tests__/use-numbering.test.ts (9 tests) 750ms ✓ ควรดึงข้อมูล metrics สำเร็จ  344ms ✓ hooks/__tests__/use-correspondence.test.ts (12 tests) 735ms ✓ should fetch correspondences successfully  349ms ✓ hooks/__tests__/use-workflows.test.ts (9 tests) 681ms ✓ hooks/__tests__/use-rfa.test.ts (10 tests) 804ms ✓ hooks/__tests__/use-workflow-history.test.ts (8 tests) 826ms ✓ components/drawings/__tests__/list.test.tsx (9 tests) 405ms ✓ components/search/__tests__/results.test.tsx (8 tests) 1713ms ✓ ควร render loading state เมื่อ loading=true  1269ms ✓ components/admin/ai/__tests__/version-history.test.tsx (3 tests) 391ms ✓ hooks/__tests__/use-projects.test.ts (10 tests) 442ms ✓ hooks/__tests__/use-users.test.ts (10 tests) 558ms ✓ hooks/__tests__/use-review-teams.test.ts (11 tests) 470ms ✓ hooks/__tests__/use-ai-prompts.test.ts (11 tests) 627ms ✓ components/correspondences/circulation-status-card.test.tsx (4 tests) 484ms ✓ components/common/__tests__/workflow-error-boundary.test.tsx (3 tests) 221ms ✓ components/common/__tests__/error-display.test.tsx (9 tests) 358ms ✓ hooks/__tests__/use-circulation.test.ts (5 tests) 297ms ✓ components/admin/ai/__tests__/prompt-editor.test.tsx (2 tests) 414ms ✓ ควร render editor สำหรับแก้ไขพรอมต์เทมเพลต  306ms ✓ hooks/__tests__/use-dashboard.test.ts (4 tests) 368ms ✓ hooks/__tests__/use-transmittal.test.ts (4 tests) 299ms ✓ components/transmittal/__tests__/transmittal-list.test.tsx (5 tests) 339ms ✓ components/auth/__tests__/auth-sync.test.tsx (7 tests) 304ms ✓ components/common/__tests__/can.test.tsx (4 tests) 312ms ✓ lib/stores/__tests__/auth-store.test.ts (6 tests) 197ms ✓ hooks/__tests__/use-ai-chat.test.ts (4 tests) 373ms ⎯⎯⎯⎯ Unhandled Rejection ⎯⎯⎯⎯⎯ Error: Something removed the coverage directory "E:/np-dms/lcbp3/frontend/coverage/.tmp" Vitest created earlier. Make sure you are not running multiple Vitests with the same "coverage.reportsDirectory" at the same time. ❯ V8CoverageProvider.normalizeCoverageFileError ../node_modules/.pnpm/vitest@4.1.8_@opentelemetry_fead2092ffa2420d46ccc7b523d0a1ee/node_modules/vitest/dist/chunks/coverage.DM_a_rWm.js:729:128 ❯ ../node_modules/.pnpm/vitest@4.1.8_@opentelemetry_fead2092ffa2420d46ccc7b523d0a1ee/node_modules/vitest/dist/chunks/coverage.DM_a_rWm.js:745:15 Caused by: Error: ENOENT: no such file or directory, open 'E:\np-dms\lcbp3\frontend\coverage\.tmp\coverage-75.json' ❯ open node:internal/fs/promises:640:25 ❯ Object.writeFile node:internal/fs/promises:1257:14 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'E:\np-dms\lcbp3\frontend\coverage\.tmp\coverage-75.json' }