javascript - chai is not defined in Karma-mocha -
I have successfully used my trial cases in Mozilla-pharmaceutical configuration. Now I am running these exams using Karma Launcher. But I get this problem This is my configuration file. My I installed karma-chai plugin for tea for this Change frameworks. And add these dependencies. Now I have solved my problem Hope it will help you too. is not defined .
module.exports = function (config) {config .set ({client: {mocha: {ui: 'tdd'}}, basepath: '', frameworks: ['Mocha'] , Files: ['Web / JS / * .js', 'Test / Lib / * .js', 'node_modules / chai / chai.js' // added it on the suggestion of reply in StackHowflow), not out: [ ], Preprocessor: {}, Correspondents: ['Progress'], Port: 9876, Color: True, Loglevel: config.LOG_INFO, AutoWatch: True, Browser: ['Firefox'], SingleRane: Fotal,}); };
Frameworks: ['Mocha', 'Tea']
NMM installed karma-chai --save-dev
Comments
Post a Comment