Unit tests fail

UI Components for Angular
Post Reply
User avatar
fam04s
Posts: 1
Joined: 29 May 2023, 16:10

04 Aug 2023, 10:53

I tried to build:the prod branch, but got a lot of unit tests failures

Code: Select all

        TypeError: Cannot read properties of null (reading 'componentInstance')
            at UserContext.apply (src/app/components/treetable/treetable.spec.ts:1393:81)
            at _ZoneDelegate.invoke (node_modules/zone.js/fesm2015/zone.js:368:26)
            at ProxyZoneSpec.onInvoke (node_modules/zone.js/fesm2015/zone-testing.js:273:39)
            at _ZoneDelegate.invoke (node_modules/zone.js/fesm2015/zone.js:367:52)
            at Zone.run (node_modules/zone.js/fesm2015/zone.js:127:43)
            at runInTestZone (node_modules/zone.js/fesm2015/zone-testing.js:555:34)
            at UserContext.<anonymous> (node_modules/zone.js/fesm2015/zone-testing.js:570:20)
Chrome Headless 115.0.5790.111 (Windows 10): Executed 789 of 789 (40 FAILED) (20.369 secs / 14.508 secs)
TOTAL: 40 FAILED, 749 SUCCESS
I managed to build the project only after removing

Code: Select all

build:check
from the

Code: Select all

build:lib

PhilHuhn
Posts: 177
Joined: 19 Sep 2018, 02:52
Location: Ann Arbor, Michigan USA
Contact:

07 Aug 2023, 14:23

Hey:
The path src/app/components/treetable/treetable.spec.ts looks like the PrimeNG source path. It almost sounds as if you are testing the PrimeNG source code.

Also what version of Angular and PrimeNG are you using?
Phil

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests