Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

test: Cover Every Palette Slot in Repeatable Samples

Lia9dfdea13cbff
diff --git a/packages/client/src/components/PixelCard.spec.tsx b/packages/client/src/components/PixelCard.spec.tsx
index 7ad66ea52a..2edf6aba72 100644
--- a/packages/client/src/components/PixelCard.spec.tsx
+++ b/packages/client/src/components/PixelCard.spec.tsx
@@ -57,7 +57,7 @@ describe('PixelCard palette', () => {
.spyOn(HTMLElement.prototype, 'getBoundingClientRect')
.mockReturnValue({ width: 200, height: 200 } as DOMRect);
let sample = 0;
- jest.spyOn(Math, 'random').mockImplementation(() => ((sample++ % 3) + 0.5) / 3);
+ jest.spyOn(Math, 'random').mockImplementation(() => ((sample++ % 7) + 0.5) / 7);
render(<PixelCard progress={1} />);
await waitFor(() =>