我正在为一个角度组件编写测试,我收到以下错误:
Uncaught (in promise): TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
at QuillService.<anonymous> (projects/ngx-quill/src/lib/quill.service.ts:26:29)
at step (node_modules/tslib/tslib.es6.js:102:23)
at Object.next (node_modules/tslib/tslib.es6.js:83:53)
该组件包含一个包含羽毛笔编辑器的子组件,并且对子组件的测试没有问题。我找不到两个测试文件之间缺少的任何内容。
奇怪的是,“它应该创建”测试通过,但任何其他都不会。