【发布时间】:2014-09-23 13:08:57
【问题描述】:
我试图在 Intern 中使用 sinon-chai plugin,但它给了我:
Error {stack: (...), message: "Cannot find the Node.js require"}
我已经通过 npm 安装了插件,这是我的测试文件:
define([
'intern!bdd',
'intern/chai!expect',
'app/functions',
'intern/chai',
'intern/dojo/node!sinon-chai'
], function (bdd, expect, myapp, chai, sinonChai) {
chai.use(sinonChai);
...
});
可能出了什么问题?
【问题讨论】:
-
你浏览过它吗?
标签: node.js dojo requirejs intern