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

Menu