Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

test(workflows): the own Qwen workflow test passes tsc -b (FEHLER-P5)

purple1a61a17a44e2
diff --git a/src/api/__tests__/own-qwen-image-workflow-values.test.ts b/src/api/__tests__/own-qwen-image-workflow-values.test.ts
index dd8fcfbc..40a7b20d 100644
--- a/src/api/__tests__/own-qwen-image-workflow-values.test.ts
+++ b/src/api/__tests__/own-qwen-image-workflow-values.test.ts
@@ -61,15 +61,15 @@ describe('an own Qwen Image 2.1 workflow, value by value', () => {
expect(out['3'].inputs).toEqual(wf['3'].inputs)
expect(out['4'].inputs).toEqual(wf['4'].inputs)
expect(out['5'].inputs).toEqual(wf['5'].inputs)
- expect(out['1'].inputs.weight_dtype).toBe('fp8_e4m3fn')
- expect(out['9'].inputs.denoise).toBe(1)
+ expect(out['1'].inputs?.weight_dtype).toBe('fp8_e4m3fn')
+ expect(out['9'].inputs?.denoise).toBe(1)
})
it('the prompt goes into the positive box, the negative box gets LU\'s negative', async () => {
const wf = qwenGraph()
const out = await injectParameters(wf, autoDetectParameterMap(wf), lu, 'qwenimage')
- expect(out['6'].inputs.text).toBe(lu.prompt)
- expect(out['7'].inputs.text).toBe('')
+ expect(out['6'].inputs?.text).toBe(lu.prompt)
+ expect(out['7'].inputs?.text).toBe('')
})
it('steps, CFG, sampler, scheduler and size are the Create controls, not the workflow', async () => {