在 eslint 的 env 配置中,增加 jest: true 或者是 "mocha": true 这类配置看一下。如果不行的话,在 eslint 中使用 globals 配置来声明全局的变量。
阅读量:1
点赞量:0