Closed eriknygren closed 2 years ago
I think the doc could be hosted on a blog.
I posted here as an example:
https://forum.shakacode.com/t/karma-setup-for-webpacker-v5/2227
I don't like this in the repo because:
We can reopen if others feel differently.
Ok. Running a unit test suite feels like a use-case common enough to the point it's worth maintaining docs for in my opinion. But I understand if the consensus is that Karma is not the go-to for Webpacker 6.
Found these docs very useful to get going with Karma unit tests in Webpacker 5. So I ported them over from the last version's docs to match what I had to do to get it working in Webpacker 6.
The docs no longer involve Typescript setup, as I don't use it on my webpacker project, but hopefully this will serve as a good starting point for others.