December 2017
Beginner
372 pages
10h 32m
English
To configure Karma for our application after installing all the dependencies, we first verify the package.json to confirm all the dependencies are installed.
Next, we will create a new file called Karma.conf.js in our root folder. You can copy the file from our https://github.com/sachinohri/SampleTrelloApplication, or from the following code snippet:
module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular/cli'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), require('@angular/cli/plugins/karma') ], client:{ clearContext: false // leave Jasmine Spec Runner output visible in browser ...
Read now
Unlock full access