My goal is to use powerbi-client in my Angular 9 application. My POC component works great, using the library like this:
import * as pbi from 'powerbi-client'; // It's installad in package.json
However, when I run my unit tests with jest, I get this error:
TypeError: Cannot read property 'getRandomValues' of undefined
Any help is very welcome ♂️
I tried adding the library under the script section of angular.json
, but this did not help:
"scripts": [
"./node_modules/powerbi-client/dist/powerbi.min.js"
],