this.columnDefs.forEach((columnDef) => {
columnDef.floatingFilter = this.hasFloatingFilter;
});
this.gridApi.setColumnDefs(this.columnDefs);
ERROR: 'ERROR', TypeError: this.gridApi.setColumnDefs is not a function TypeError: this.gridApi.setColumnDefs is not a function
I have initialized a variable gridApi, which is an instance of GridApi from the 'ag-grid-community' library. Despite setColumnDefs() being a valid function, I encountered the above error during unit testing.