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