I am using Backbone.js and RequireJs for a single page application.
When I run my karma tests, css is not included. When debugging, it’s hard to understand what is happening or why something isn’t working, because the html elements are not styled like in a production application.
Is it possible to embed css in karma tests during debugging using webstorm?
I already tried to include all css in the file array
files: [
{pattern: 'app/css/*.css', included: false},
...
],
This is the css file that is included in the index.html of the production application, there is nothing in the karma configuration that I can find to add something like this.
<link rel="stylesheet" href="css/styles.css" />
source
share