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 is not defined .

This is my configuration file.

  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,}); };   

Enter image details here

My

I installed karma-chai plugin for tea

for this Change frameworks.

  Frameworks: ['Mocha', 'Tea']   

And add these dependencies.

  NMM installed karma-chai --save-dev   

Now I have solved my problem Hope it will help you too.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -