尝试使用现有和最近迁移的 Angular 7 项目运行简单的效果测试。但我得到如下错误。
错误: 在 getTestScheduler (node_modules/jasmine-marbles/es6/src/scheduler.js:11:1) 在新的 TestHotObservable (node_modules/jasmine-marbles/es6/src/test-observables.js:21:39)没有初始化测试调度程序) 在 Module.hot (node_modules/jasmine-marbles/es6/index.js:7:1)
我在效果规范文件中的代码是使用 jasmine-marbles 进行的基本标准检查。
const action = new Load(request);
const completion = new LoadSuccess(result);
actions$ = hot('-a-', { a: action});
const response = cold('-a|', {a: result});
const expected = cold('--b', {b: completion});
service.getSomething.and.returnValue(result);
expect(effects.load$).toBeObservable(expected);
以前有没有人看到并解决过这个错误?