JavaScript Standard Style does not recognize Mocha

后端 未结 6 586
囚心锁ツ
囚心锁ツ 2020-12-23 15:35

I have a Mocha test file that looks like this:

var expect = require(\'chai\').expect
var muting = require(\'../muting\')

describe(\'muting\', function () {
         


        
6条回答
  •  天涯浪人
    2020-12-23 16:21

    for eslint use this line on the beginning of test_file.js

    /* eslint-env mocha */
    

提交回复
热议问题