title: How to configure Karma to include global scss files for an angular-cli project?
body: <p>I cannot configure angular-cli + scss + karma to test my components together. Running <code>ng test</code> the kamra unit tests are only including the components' own scss styles. </p>
  
  <p>In order to apply my main styles.scss in tests, I've tried to configure them in karma.conf.js:</p>
  
  <pre><code>files: [ 
    { pattern: './src/test.ts', watched: false },
    { pattern: './src/styles.scss' },   // main scss
    { pattern: './src/test.css' },      // just some test css to see if it is working
  ]
  preprocessors: {
    './src/test.ts': ['@angular/cli'],
    './src/styles.scss': [ '@angular/cli' ]
  }
  </code></pre>
  
  <p>Main scss is still not included during karma tests. 
  But the components own scss and the global css are applied.</p>
  
  <p>How can I make it work?</p>