Hi
I have an Angular component that renders HotTable properly in the app runtime but exact same configuration setup does not render HotTable in the tests. What might be the issue ??
I am using hot-table wrapper and simply speaking it does not generate any table related dom besides main div wrapper
My console logs even shows that some of HOT callbacks are firing (validation hooks, dataSchema function)so “backend” of the table works correctly.
My test setup looks like this
I have tries with and without forRoot
. All HOT configuration is created on host component constructor so it is already set at this point. Any ideas?
I have also included hot css via cdn in tests (but there is no dom so it of no use for now)
I am even able to actually get hot instance with a bit of a code. Under the hood it uses HotTableRegistrar.getInstance(id);
ngAfterViewInit() { // @ts-ignore
const hotInstance = this.table.hotInstance();
console.log('hot instance', hotInstance);
}
which prints
'hot instance', Core{eventListeners: [Object{element: ..., event: ..., callback: ..., callbackProxy: ..., options: ..., eventManager: ...}, .........
so core is indeed there, but no rendered dom.