Test Vue3 project with safetest

  Kiến thức lập trình

I have a Vue project.
I have to test it with safetest.
I followed https://azukiazusa.dev/blog/safetest-a-test-library-offering-a-new-ui-testing-approach/ and https://github.com/kolodny/safetest/readme.md.
But I can not run the test code.
There is error – “Error: Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files.”
How to solve it?

I try ‘npm run safetest’, there is error ‘Error: Failed to parse source for import analysis because the content contains invalid JS syntax. Install @vitejs/plugin-vue to handle .vue files.’

New contributor

Akiri Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT