Reactjs – Vitest – Unknown file extension ".css"
With React project set up with Vite and run tests with Vitest v2.1.1, we might see the following issue with CSS files: TypeError: Unknown file extension .css for /path/to/css/file How can we resolve it?