Open thomasjm opened 11 months ago
I faced a similar issue. The solution was to provide an alias in the karma.conf
Vite config.
This was my alias. You might need '/test/base':'/test'
or /test/base':''
instead of /base:''
vite: {
config: {
resolve: {
alias: {
'/base': '',
}
}
}
}
When I try to use this plugin, I get slightly concerning "failed to load url" messages in the log output. They don't seem to affect the running of the tests, but I'd like to make them go away.
For example, I tried running the react example from this repo:
I realize Karma is deprecated, but it still has 2.5M weekly downloads on NPM and is a bit difficult to find an alternative for, so it would be nice to figure this out.