holunda-io / polyflow-examples

A collection of examples demonstrating the usage of Polyflow library.
https://www.holunda.io/camunda-bpm-taskpool/
Apache License 2.0
6 stars 4 forks source link

Fix Jasmine Test for Process Definition Effect. #185

Closed zambrovski closed 1 year ago

zambrovski commented 1 year ago

Suddenly the Jasmine Test for process definition is broken.

I had to disable test located at components/tasklist-angular/src/app/process/state/process.effects.spec.ts

Disabling by putting an xdescribe or xit didn't work, so I comment out the test.

The error:

 - Generating browser application bundles (phase: setup)...
[INFO] 12 04 2023 19:03:25.740:INFO [karma-server]: Karma v6.3.16 server started at http://localhost:9876/
[INFO] 12 04 2023 19:03:25.743:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited
[INFO] 12 04 2023 19:03:25.747:INFO [launcher]: Starting browser Chrome
[INFO] ✔ Browser application bundle generation complete.
[INFO] ✔ Browser application bundle generation complete.
[INFO] 
[INFO] Error: src/app/process/state/process.effects.spec.ts:42:11 - error TS2322: Type '{ processName: string; description: string; url: string; }' is not assignable to type 'ExpectedRecursive<ProcessDefinition>'.
[INFO]   Object literal may only specify known properties, and 'processName' does not exist in type 'ExpectedRecursive<ProcessDefinition>'.
[INFO] 
[INFO] 42         { processName: 'foo', description: '', url: ''},
[INFO]              ~~~~~~~~~~~~~~~~~~
[INFO] 
[INFO] 
[INFO] Error: src/app/process/state/process.effects.spec.ts:43:11 - error TS2322: Type '{ processName: string; description: string; url: string; }' is not assignable to type 'ExpectedRecursive<ProcessDefinition>'.
[INFO]   Object literal may only specify known properties, and 'processName' does not exist in type 'ExpectedRecursive<ProcessDefinition>'.
[INFO] 
[INFO] 43         { processName: 'bar', description: '', url: ''}
[INFO]              ~~~~~~~~~~~~~~~~~~
[INFO] 
[INFO] 

Please help.