You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
With the above details ng test was throwing the following error
12 07 2018 11:12:27.391:INFO [Chrome 67.0.3396 (Windows 7.0.0)]: Connected on socket Y_50WuISYFnxSEPLAAAA with id 9725077
Chrome 67.0.3396 (Windows 7.0.0) ERROR Uncaught Error: Missing: SyncTestZoneSpec
at http://localhost:9877/_karma_webpack_/vendor.bundle.js:202926
I tried to update the karma.config.js based on the #404
by adding following references to karma config
require('zone.js/dist/zone'),
require('zone.js/dist/long-stack-trace-zone'),
require('zone.js/dist/async-test'),
require('zone.js/dist/fake-async-test'),
require('zone.js/dist/sync-test'),
require('zone.js/dist/proxy-zone'), // since zone.js 0.6.14
require('zone.js/dist/jasmine-patch') // put here since zone.js 0.6.14
I see the following error there after
12 07 2018 11:39:54.918:ERROR [config]: Error in config file! ReferenceError: XMLHttpRequest is not defined
at patchXHR (node_modules\zone.js\dist\zone.js:2892:39)
Trying to unit test Angular (not AngularJS) application.
Here is the package.json
Here is tsconfig.json
Here is karma.config.js
With the above details ng test was throwing the following error
12 07 2018 11:12:27.391:INFO [Chrome 67.0.3396 (Windows 7.0.0)]: Connected on socket Y_50WuISYFnxSEPLAAAA with id 9725077
Chrome 67.0.3396 (Windows 7.0.0) ERROR
Uncaught Error: Missing: SyncTestZoneSpec
at http://localhost:9877/_karma_webpack_/vendor.bundle.js:202926
I tried to update the karma.config.js based on the
#404
by adding following references to karma config
I see the following error there after
12 07 2018 11:39:54.918:ERROR [config]: Error in config file!
ReferenceError: XMLHttpRequest is not defined
at patchXHR (node_modules\zone.js\dist\zone.js:2892:39)
Any thoughts
Sorry, if I am reposting it, as I have already posted it here:
https://stackoverflow.com/questions/51310070/unable-to-unit-test-angular-application-using-karma-and-jasmine
The text was updated successfully, but these errors were encountered: