I'm trying to run some simple tests in a reactjs project. I run into the following error when the component being tested has '@fluentui/react' or '@fluentui/react-northstar' imports -
Test suite failed to run
TypeError: Class extends value undefined is not a constructor or null
1 | import { Provider } from 'react-redux';
> 2 | import { registerIcons } from '@fluentui/react';
| ^
3 |
at Object.__extends (node_modules/@fluentui/utilities/node_modules/tslib/tslib.js:70:19)
at node_modules/@fluentui/utilities/src/BaseComponent.ts:20:81
Does anybody know what causes this error in case of fluentui libraries and how to get rid of it?