Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(webv2): seed the capability fixture in the upscale graph test

Alexander Eichhornc8b15e0dc073
diff --git a/invokeai/frontend/webv2/src/features/upscale/core/graph.test.ts b/invokeai/frontend/webv2/src/features/upscale/core/graph.test.ts
index 317801eb7d..70c2694fe9 100644
--- a/invokeai/frontend/webv2/src/features/upscale/core/graph.test.ts
+++ b/invokeai/frontend/webv2/src/features/upscale/core/graph.test.ts
@@ -1,6 +1,7 @@
import type { GenerateLora, VaeModelConfig } from '@features/generation/contracts';
import type { ModelConfig } from '@features/models';
+import { seedArchitectureCapabilities } from '@features/generation/core/architectureCapabilities.testing';
import { describe, expect, it } from 'vitest';
import { compileUpscaleGraph, getUpscaleControlNetValues, getUpscaleDenoisingStart } from './graph';
@@ -54,6 +55,8 @@ const hasEdge = (
edge.destination.field === destinationField
);
+seedArchitectureCapabilities();
+
describe('compileUpscaleGraph', () => {
it('preserves the exact legacy creativity and structure formulas', () => {
expect(getUpscaleDenoisingStart(0)).toBeCloseTo(0.499);