0
我嘗試過的NodeJS項目,摩卡使用噶,我得到一個錯誤的工作:麻煩與噶
「模塊名稱‘的testStub’尚未加載背景:_使用要求([ ]) http://requirejs.org/docs/errors.html#notloaded「
不知道我應該在哪裏添加測試存根文件。
此外,當我使用「Karma init」配置Karma時,我要求能夠使用requireJS,但不要將配置文件添加到Karma。有一個測試配置文件和另一個代碼,我需要包括兩個。