I followed the steps in the readme - had to add a .typingsrc for my proxy to get around problems at the npm install
step - but at npm test
, it spits out a bunch of errors:
C:\Users\Paul.Abrams\Source\Repos\tsMochaWebpackDemo>npm test
[email protected] test C:\Users\Paul.Abrams\Source\Repos\tsMoch
aWebpackDemo
karma start karma.unit.js
Hash: 1824a81e7942e27e9ca2
Version: webpack 2.7.0
Time: 110ms
webpack: Compiled successfully.
webpack: Compiling...
webpack: wait until bundle finished:
[at-loader] Using [email protected] from typescript and "tsconfig.json" from C:\U
sers\Paul.Abrams\Source\Repos\tsMochaWebpackDemo/tsconfig.json.
[at-loader] Checking started in a separate process...
[at-loader] Ok, 0.07 sec.
[at-loader] Checking started in a separate process...
[at-loader] Checking finished with 22 errors
Hash: d7a53ac7b7cf78eb9820
Version: webpack 2.7.0
Time: 250ms
Asset Size Chunks Chunk Names
test/MovieDataService.spec.ts 491 kB 0 [emitted] [big] test/MovieDataS
ervice.spec.ts
test/MoviesViewModel.spec.ts 491 kB 1 [emitted] [big] test/MoviesView
Model.spec.ts
chunk {0} test/MovieDataService.spec.ts (test/MovieDataService.spec.ts) 485 k
B [entry]
[0] .//chai/lib/chai/utils/flag.js 807 bytes {0} {1} [built]
[1] .//chai/lib/chai/config.js 1.46 kB {0} {1} [built]
[2] .//chai/lib/chai/utils/inspect.js 9.86 kB {0} {1} [built]
[4] .//jquery/dist/jquery.js 272 kB {0} {1} [built]
[5] .//assertion-error/index.js 2.43 kB {0} {1} [built]
[12] ./src/MovieDataService.ts 946 bytes {0} {1} [built]
[13] .//chai/index.js 40 bytes {0} {1} [built]
[14] ./test/MovieDataService.spec.ts 1.54 kB {0} [built]
[17] .//chai/lib/chai.js 1.28 kB {0} {1} [built]
[18] .//chai/lib/chai/assertion.js 3.79 kB {0} {1} [built]
[19] .//chai/lib/chai/core/assertions.js 51.8 kB {0} {1} [built]
[20] .//chai/lib/chai/interface/assert.js 40.9 kB {0} {1} [built]
[21] .//chai/lib/chai/interface/expect.js 770 bytes {0} {1} [built]
[22] .//chai/lib/chai/interface/should.js 5.67 kB {0} {1} [built]
[31] .//chai/lib/chai/utils/index.js 1.71 kB {0} {1} [built]
+ 29 hidden modules
chunk {1} test/MoviesViewModel.spec.ts (test/MoviesViewModel.spec.ts) 485 kB
[entry] [rendered]
[1] .//chai/lib/chai/config.js 1.46 kB {0} {1} [built]
[2] .//chai/lib/chai/utils/inspect.js 9.86 kB {0} {1} [built]
[4] .//jquery/dist/jquery.js 272 kB {0} {1} [built]
[5] .//assertion-error/index.js 2.43 kB {0} {1} [built]
[12] ./src/MovieDataService.ts 946 bytes {0} {1} [built]
[13] .//chai/index.js 40 bytes {0} {1} [built]
[17] .//chai/lib/chai.js 1.28 kB {0} {1} [built]
[18] .//chai/lib/chai/assertion.js 3.79 kB {0} {1} [built]
[19] .//chai/lib/chai/core/assertions.js 51.8 kB {0} {1} [built]
[20] .//chai/lib/chai/interface/assert.js 40.9 kB {0} {1} [built]
[21] .//chai/lib/chai/interface/expect.js 770 bytes {0} {1} [built]
[22] .//chai/lib/chai/interface/should.js 5.67 kB {0} {1} [built]
[31] ./~/chai/lib/chai/utils/index.js 1.71 kB {0} {1} [built]
[44] ./src/MoviesViewModel.ts 660 bytes {1} [built]
[45] ./test/MoviesViewModel.spec.ts 1.33 kB {1} [built]
+ 30 hidden modules
ERROR in [at-loader] ./test/MovieDataService.spec.ts:6:1
TS2304: Cannot find name 'describe'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:9:3
TS2304: Cannot find name 'describe'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:10:5
TS2304: Cannot find name 'it'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:11:7
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:13:7
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:17:3
TS2304: Cannot find name 'describe'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:18:21
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:21:5
TS2304: Cannot find name 'it'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:26:5
TS2304: Cannot find name 'it'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:27:28
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MovieDataService.spec.ts:32:5
TS2304: Cannot find name 'it'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:5:1
TS2304: Cannot find name 'describe'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:7:29
TS2503: Cannot find namespace 'Sinon'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:8:3
TS2304: Cannot find name 'beforeEach'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:9:5
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:10:28
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:14:3
TS2304: Cannot find name 'afterEach'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:15:5
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:16:5
TS2304: Cannot find name 'sinon'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:19:3
TS2304: Cannot find name 'it'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:23:3
TS2304: Cannot find name 'it'.
ERROR in [at-loader] ./test/MoviesViewModel.spec.ts:28:3
TS2304: Cannot find name 'it'.
webpack: Failed to compile.
01 05 2018 12:10:02.546:INFO [karma]: Karma v1.7.1 server started at http://0.0.
0.0:9876/
01 05 2018 12:10:02.546:INFO [launcher]: Launching browser PhantomJS with unlimi
ted concurrency
01 05 2018 12:10:02.586:INFO [launcher]: Starting browser PhantomJS
01 05 2018 12:10:06.379:INFO [PhantomJS 2.1.1 (Windows 7.0.0)]: Connected on soc
ket _J58yTnC8RELNzsnAAAA with id 89339749
INFO: 'sinon.restore is deprecated and will be removed from the public API in a
future version of sinon.'
INFO: 'sinon.restore is deprecated and will be removed from the public API in a
future version of sinon.'
INFO: 'sinon.restore is deprecated and will be removed from the public API in a
future version of sinon.'
INFO: 'sinon.restore is deprecated and will be removed from the public API in a
future version of sinon.'
INFO: 'sinon.restore is deprecated and will be removed from the public API in a
future version of sinon.'
INFO: 'sinon.restore is deprecated and will be removed from the public API in a
future version of sinon.'
INFO: 'sinon.restore is deprecated and will be removed from the public API in a
future version of sinon.'
PhantomJS 2.1.1 (Windows 7.0.0): Executed 7 of 7 SUCCESS (0.02 secs / 0.012 secs
)
01 05 2018 12:10:06.705:WARN [web-server]: 404: /movies
01 05 2018 12:10:06.705:WARN [web-server]: 404: /movies
01 05 2018 12:10:06.705:WARN [web-server]: 404: /movies
01 05 2018 12:10:06.705:WARN [web-server]: 404: /movies
C:\Users\Paul.Abrams\Source\Repos\tsMochaWebpackDemo>