Vue unit test karma+mocha+chai $ref is not available

the recent unit test using vuecli karma+mocha+chai, test is that $ref will report an error and cannot continue.
clipboard.png
there is no problem in development and production, and the unit test begins to report an error

.
Nov.30,2021

try printing this.$refs and check it out

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b376ae-2b8db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b376ae-2b8db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?