Vue-cli unit test error report

when using vue-cli "s unit test (jest), an error is reported:
first:

Your test suite must contain at least one test.

clipboard.png

:
test.vue:


test.js:


test.spec.js


:clipboard.png

but the error reporting function is not involved in the code (used before, deleted, but always reported). The error is reported from node_modules, but neither the console nor the terminal reports the error. It feels like it was not updated to the code in time and tried to restart, but it is of no use

excuse me, how should the above problems be solved? (because there are few people who use the unit test and there are few materials on the Internet, I need you to mention it a little.)

Mar.28,2021

means that your test suite does not contain test cases


where the error is reported from test.js, so the unit test should not overwrite this file.
so you can check whether your configuration file and startup command are correct. If you still don't understand, please map it in detail ~

.
Menu