I started using bower within my web application now and as I am using wallabyjs for testing I added
{ pattern: 'bower_components/**/*.*', instrument: false, load: false }
to my wallabyjs configuration. Everything is working fine that way. But as I've read in the webpack documentation this is not really the recommended way:
The more efficient approach that we would recommend is to specify an absolute path in your wallaby configuration for webpack for your external modules (not your source files) instead
I've tried to achieve something similar for my scenario (with requirejs) but failed. My current questions:
What is the best way to handle the bower_components folder using requirejs/ wallabyjs?
It seems that it is mandatory that the folder bower_components is a solution folder. As soon as I say "Exclude from project" within Visual Studio my tests fail again.