Closed suchetaswabhav closed 5 years ago
Hi,
As soon as I run npm run test / ng test , My test cases run , but the error's appear in the terminal itself and not in karma chrome.
karma.conf.js
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), require('@angular-devkit/build-angular/plugins/karma'), require('karma-phantomjs-launcher'), //new require( 'karma-html-reporter'), require('karma-teamcity-reporter') ], client: { clearContext: false // leave Jasmine Spec Runner output visible in browser }, coverageIstanbulReporter: { dir: require('path').join(__dirname, '../coverage'), reports: ['html', 'lcovonly'], fixWebpackSourcePaths: true }, reporters: ['html','progress', 'kjhtml'], hostname:'192.168.5.140', port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], singleRun: false }); };
package.json -
"dependencies": { "@agm/core": "^1.0.0-beta.7", "@angular/animations": "^7.0.1", "@angular/common": "^7.0.1", "@angular/compiler": "^7.0.1", "@angular/core": "^7.0.1", "@angular/forms": "^7.0.1", "@angular/http": "^7.0.1", "@angular/platform-browser": "^7.0.1", "@angular/platform-browser-dynamic": "^7.0.1", "@angular/router": "^7.0.1", "@jaspero/ng-confirmations": "^0.4.7", "@jaspero/ng2-confirmations": "^0.3.3", "@ng-bootstrap/ng-bootstrap": "^3.3.1", "@swimlane/ngx-charts": "^7.0.1", "@swimlane/ngx-datatable": "^13.1.0", "@types/crypto-js": "^3.1.43", "angular-calendar": "^0.25.2", "angular-datatables": "^6.0.1", "bootstrap": "^4.3.1", "c3": "^0.4.23", "chart.js": "^2.8.0", "chartist": "^0.11.3", "core-js": "^2.6.9", "crypto-js": "^3.1.9-1", "d3": "^4.8.0", "datatables.net": "^1.10.19", "datatables.net-dt": "^1.10.19", "jasmine": "^3.4.0", "jquery": "^3.4.1", "jspdf": "^1.5.3", "jspdf-autotable": "^3.2.4", "karma-html-reporter": "^0.2.7", "karma-phantomjs-launcher": "^1.0.4", "karma-teamcity-reporter": "^1.1.0", "ng-chartist": "^1.1.1", "ng2-charts": "^1.6.0", "ng2-dragula": "^1.5.0", "ng2-file-upload": "^1.3.0", "ng2-smart-table": "1.2.2", "ngx-pagination": "^4.1.0", "ngx-perfect-scrollbar": "6.1.0", "ngx-quill": "^3.6.0", "ngx-toastr": "^8.10.2", "ngx-tooltip": "0.0.9", "node-sass": "^4.12.0", "pace-js": "^1.0.2", "quill": "^1.3.6", "rxjs": "^6.5.2", "rxjs-compat": "^6.5.2", "zone.js": "^0.8.29" }, "devDependencies": { "@angular-builders/custom-webpack": "^8.2.0", "@angular-devkit/build-angular": "^0.10.7", "@angular/cli": "~7.0.3", "@angular/compiler-cli": "^7.0.1", "@angular/language-service": "^7.0.1", "@types/c3": "^0.6.4", "@types/chartist": "^0.9.46", "@types/datatables.net": "^1.10.17", "@types/jasmine": "^2.8.16", "@types/jasminewd2": "^2.0.6", "@types/jquery": "^3.3.31", "@types/node": "~8.9.4", "codelyzer": "~4.2.1", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "^4.3.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~1.4.2", "karma-jasmine": "^2.0.1", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "^5.4.2", "ts-node": "~5.0.1", "tslint": "~5.9.1", "typescript": "^3.1.6" },
i.e Image My Karma chrome launcher is blank -
Errors on screen -
That is working as designed. See https://www.npmjs.com/package/karma-jasmine-html-reporter for in-browser error reporting.
Hi,
As soon as I run npm run test / ng test , My test cases run , but the error's appear in the terminal itself and not in karma chrome.
karma.conf.js
package.json -
i.e Image My Karma chrome launcher is blank -
Errors on screen -