We are now starting a new project using Angular 21 and the new test framework is Vitest.
I notice that every time I use an Ix component as dependency the test fails.
FAIL my-app src/app/pages/page1/page1.spec.ts [ src/app/pages/page1/page1.spec.ts ]
TypeError: Cannot convert undefined or null to object
❯ node_modules/@siemens/ix/components/p-D-__gyet.js:128:124
❯ node_modules/@siemens/ix/components/p-D-__gyet.js:128:201
❯ src/app/pages/page1/page1.ts:2:1
I tried to trace the error and it goes to this line from any Ix component. E.g:
node_modules/@siemens/ix/components/p-D-__gyet.js:128:124
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
We need help here.