I'm still encountering the issue, which appears to stem from a third-party library. This external library was built with Webpack, while the project I'm using it in was built with Vite (both are React TypeScript projects), so unfortunately, I can't modify the library itself.
The error only occurs when I run the tests using npm run test
:
"Automatic publicPath is not supported in this browser"
Any guidance on how to work around this conflict between Vite and Webpack in the testing environment would be greatly appreciated.