У меня есть модуль, который импортирует IntlModule Кендо, и файл спецификации с Jest выдает ошибку.
a.module.ts
import { IntlModule } from '@progress/kendo-angular-intl';
import '@progress/kendo-angular-intl/locales/en-GB/all';
@NgModule({
import: [ IntlModule ]
})
export class AModule { }
a.module.spec.ts
Это спецификация модуля по умолчанию, которая у меня сейчас есть:
import { AModule } from './a.module';
describe('AModule', () => {
let aModule: AModule;
beforeEach(() => {
aModule = new AModule();
});
it('should create an instance', () => {
expect(aModule).toBeTruthy();
});
});
Я получаю следующую ошибку:
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import { setData } from '@progress/kendo-angular-intl';
SyntaxError: Unexpected token {
24 | }
> 26 | }),
| ^
27 | IntlModule
28 | ],
29 | exports: [
Как я могу издеваться над IntlModule для прохождения теста?