If @bedrock/karma is used in a non-vue project (vue is not installed anywhere), the test running fails with the error:
Error: Cannot find module 'vue/compiler-sfc'
Installing vue in the test directory alongside @bedrock/karma fixes the error, but seems like the wrong solution. Either @bedrock/karma should install vue as a dependency or list it as a peer dependency -- or, even better, there should be some way to run non-vue module tests without installing vue at all.
If
@bedrock/karmais used in a non-vue project (vueis not installed anywhere), the test running fails with the error:Installing
vuein the test directory alongside@bedrock/karmafixes the error, but seems like the wrong solution. Either@bedrock/karmashould installvueas a dependency or list it as a peer dependency -- or, even better, there should be some way to run non-vue module tests without installingvueat all.