Filipe Silva
38a7ab47c6
fix(@angular/cli): fix asset watching
...
https://github.com/kevlened/copy-webpack-plugin is now used instead of the custom plugin, it has since implemented the features we needed.
Fix #7521
2017-09-05 21:45:19 +01:00
AntoineC
06f3026042
fix(@angular/cli): add explicit source-map-support dependency ( #7191 )
...
karma plugin relies on source-map-support being a dependency of karma-source-map-support and npm 3+ flat dependency tree.
https://github.com/pnpm/pnpm/issues/863
2017-07-31 11:45:54 +01:00
Filipe Silva
455d56ed34
fix(@angular/cli): fix ng test report sourcemaps
...
#6160 broke `ng test` sourcemaps in Chrome, this PR fixes it.
Before:
```
kamik@T460p MINGW64 D:/sandbox/master-project (master)
$ ng test --sr
10% building modules 1/1 modules 0 active13 07 2017 16:38:43.942:INFO [karma]: Karma v1.7.0 server started at http://0.0.0.0:9876/
13 07 2017 16:38:43.945:INFO [launcher]: Launching browser Chrome with unlimited concurrency
13 07 2017 16:38:43.953:INFO [launcher]: Starting browser Chrome 13 07 2017 16:38:54.099:INFO [Chrome 59.0.
3071 (Windows 10 0.0.0)]: Connected on socket Xdep72ofT_Q7MWBHAAAA with id 76010950
Chrome 59.0.3071 (Windows 10 0.0.0) AppComponent should have as title 'app' FAILED
Expected 'app' to equal 'forced bug'.
at Object.<anonymous> (http://localhost:9876/_karma_webpack_/main.bundle.js:89:27 )
at ZoneDelegate.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (http://localhost:9
876/_karma_webpack_/polyfills.bundle.js:2704:26)
at AsyncTestZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/async-test.js.AsyncTestZoneSpec.onInvoke (
http://localhost:9876/_karma_webpack_/vendor.bundle.js:55972:39 )
at ProxyZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvoke (http://localh
ost:9876/_karma_webpack_/vendor.bundle.js:56735:39)
Chrome 59.0.3071 (Windows 10 0.0.0): Executed 2 of 3 (1 FAILED) (0 secs / 0.162 secs)
Chrome 59.0.3071 (Windows 10 0.0.0) AppComponent should have as title 'app' FAILED
Expected 'app' to equal 'forced bug'.
at Object.<anonymous> (http://localhost:9876/_karma_webpack_/main.bundle.js:89:27 )
at ZoneDelegate.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (http://localhost:9
876/_karma_webpack_/polyfills.bundle.js:2704:26)
at AsyncTestZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/async-test.js.AsyncTestZoneSpec.onInvoke (
http://localhost:9876/_karma_webpack_/vendor.bundle.js:55972:39 )
at ProxyZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvoke (http://localh
Chrome 59.0.3071 (Windows 10 0.0.0): Executed 3 of 3 (1 FAILED) (0.225 secs / 0.204 secs)
```
After:
```
kamik@T460p MINGW64 D:/sandbox/master-project (master)
$ ng test --sr
10% building modules 1/1 modules 0 active13 07 2017 16:37:59.478:INFO [karma]: Karma v1.7.0 server started at http://0.0.0.0:9876/
13 07 2017 16:37:59.481:INFO [launcher]: Launching browser Chrome with unlimited concurrency
13 07 2017 16:37:59.487:INFO [launcher]: Starting browser Chrome 13 07 2017 16:38:08.559:INFO [Chrome 59.0.
3071 (Windows 10 0.0.0)]: Connected on socket ixHN4NzVFTEW1iYiAAAA with id 92819713
Chrome 59.0.3071 (Windows 10 0.0.0) AppComponent should have as title 'app' FAILED
Expected 'app' to equal 'forced bug'.
at Object.<anonymous> D:/sandbox/master-project/src/app/app.component.spec.ts:23:23)
at ZoneDelegate.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke D:/sandbox/master-p
roject/node_modules/zone.js/dist/zone.js:391:1)
at AsyncTestZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/async-test.js.AsyncTestZoneSpec.onInvoke D
:/sandbox/master-project/node_modules/zone.js/dist/async-test.js:49:1)
at ProxyZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvoke D:/sandbox/mas
ter-project/node_modules/zone.js/dist/proxy.js:76:1)
Chrome 59.0.3071 (Windows 10 0.0.0): Executed 2 of 3 (1 FAILED) (0 secs / 0.367 secs)
Chrome 59.0.3071 (Windows 10 0.0.0) AppComponent should have as title 'app' FAILED
Expected 'app' to equal 'forced bug'.
at Object.<anonymous> D:/sandbox/master-project/src/app/app.component.spec.ts:23:23)
at ZoneDelegate.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke D:/sandbox/master-p
roject/node_modules/zone.js/dist/zone.js:391:1)
at AsyncTestZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/async-test.js.AsyncTestZoneSpec.onInvoke D
:/sandbox/master-project/node_modules/zone.js/dist/async-test.js:49:1)
at ProxyZoneSpec.webpackJsonp.../../../../../../../sandbox/master-project/node_modules/zone.js/dist/proxy.js.ProxyZoneSpec.onInvoke D:/sandbox/mas
Chrome 59.0.3071 (Windows 10 0.0.0): Executed 3 of 3 (1 FAILED) (0.421 secs / 0.4 secs)
```
Fix #6583
2017-07-19 11:02:57 -04:00
Filipe Silva
1cd0a0811d
feat(@angular/cli): improve ng test performance
...
This PR uses a new Karma plugin to enable vendor bundles in unit tests,
increasing rebuild performance.
On a medium size project rebuilds times were 15x smaller (16.5s to 0.9s).
Fix #5423
2017-05-08 16:51:40 +01:00
Filipe Silva
9cda847035
fix(@angular/cli): fix error handling on test
...
Fix #2778
Fix #3424
2017-03-20 09:10:17 -07:00
Hans Larsen
d94040b2de
fix(@angular/cli): sourcemaps should be the main option, sourcemap an alias
2017-03-14 15:32:00 -07:00
Mike Brocchi
1609554c4d
refactor(@angular/cli): consolidate config reading logic ( #5023 )
2017-02-27 21:22:19 -08:00
Filipe Silva
958bee3de1
feat(@angular/cli): don't add empty assets to karma ( #4952 )
...
Removes the warning that would appear on new projects when running `ng test` due to there being no files inside `src/assets/`:
```
23 02 2017 10:45:33.751:WARN [watcher]: Pattern "D:\sandbox\master-project\src\assets/**" does not match any file.
```
2017-02-23 14:10:26 +00:00
Sumit Arora
ade2236a9b
feat(@angular/cli): adding the --app command option ( #4754 )
2017-02-22 14:19:29 -08:00
Filipe Silva
3bba4cb4da
feat(@angular/cli): use same webpack config for karma
...
Close #4851
Fix #3605
Fix #4850
Fix #4876
2017-02-22 11:54:06 +00:00