title: Change angular-cli test folder to another directory
body: <p>I would like to know if it's possible change the path <code>test</code> to another folder, for example:</p>
  
  <pre><code>test/jest/**/*.spec.ts
  test/karma/**/*.spec.ts
  </code></pre>
  
  <p>This is what I'm trying, but without success</p>
  
  <p><strong>.angular-cli.json</strong></p>
  
  <pre><code>"test": {
    "karma": {
      "config": "./karma.conf.js"
    },
    "codeCoverage": {
      "exclude": [
        "**/test/jest/*.spec.ts"
      ]
    }
  },
  </code></pre>
  
  <p><strong>karma.conf.js</strong></p>
  
  <pre><code>exclude: [
    "**/test/jest/*.spec.ts"
  ]
  </code></pre>
  
  <p><strong>src/test.ts</strong></p>
  
  <pre><code>const context = require.context('./test/karma/', true, /\.spec\.ts$/);
  </code></pre>
  
  <p><strong>src/tsconfig.spec.json</strong></p>
  
  <pre><code>"exclude": [
    "**/test/jest/*.spec.ts"
  ]
  </code></pre>
  
  <p>When I run <code>npm test</code>, the karma tests doesn't work (which was working) and it still reading <code>/test/jest/</code></p>
  
  <pre><code>ERROR in src/test/jest/services/cart.spec.ts(5,1): error TS2304: Cannot find name 'test'.
  
  [karma]: Karma v2.0.0 server started at http://0.0.0.0:9876/
  [launcher]: Launching browser Chrome with unlimited concurrency
  [launcher]: Starting browser Chrome
  [launcher]: Chrome have not captured in 60000 ms, killing.
  [launcher]: Trying to start Chrome again (1/2).
  </code></pre>
  
  <p>I've already try reinstall my modules, but it still the same.</p>
  
  <pre><code>$ rm -rf node_modules
  $ rm -f package-lock.json
  $ npm cache clean --force
  $ npm install
  </code></pre>
  
  <p><strong>package.json</strong></p>
  
  <pre><code>"@angular": "^5.2.9"
  "@angular/cli": "^1.7.3"
  "karma": "~2.0.0"
  "karma-cli": "~1.0.1"
  </code></pre>