【发布时间】:2017-04-10 04:22:02
【问题描述】:
我正在尝试在 typescript 项目上配置 mocha,但无法正常工作 我正在使用书籍:Typescript 设计模式,第 1 章。
当我运行 mocha 时,它会说:
警告:找不到任何匹配模式的测试文件:out/test/ No 找到测试文件
mocha.opts
--require ./test/mocha.js
out/test/
mocha.js
require('chai').should();
starter.js
describe('some feature', () => {
it('should pass', () => {
'foo'.should.not.equal('bar');
});
it('should error', () => {
(() => {
throw new Error();
}).should.throw();
}); });
【问题讨论】:
标签: javascript typescript mocha.js