Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test([client-component-tests-for-categoryeditor-promote]): address copilot review

[._.]/ Adam Eivybc63e0395885
diff --git a/client/package.json b/client/package.json
index d6084abfe1..d1bb976d0e 100644
--- a/client/package.json
+++ b/client/package.json
@@ -31,17 +31,17 @@
"devDependencies": {
"@eslint/js": "9.23.0",
"@tailwindcss/postcss": "4.2.1",
- "@testing-library/jest-dom": "^6.9.1",
- "@testing-library/react": "^16.3.2",
- "@testing-library/user-event": "^14.6.1",
+ "@testing-library/jest-dom": "6.9.1",
+ "@testing-library/react": "16.3.2",
+ "@testing-library/user-event": "14.6.1",
"@vitejs/plugin-react": "5.1.4",
"eslint": "9.23.0",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "5.2.0",
- "jsdom": "^25.0.1",
+ "jsdom": "25.0.1",
"tailwindcss": "4.2.1",
"vite": "7.3.2",
- "vitest": "^3.2.4"
+ "vitest": "3.2.4"
},
"overrides": {
"brace-expansion": "5.0.5",
diff --git a/client/src/pages/UniverseBuilder.test.jsx b/client/src/pages/UniverseBuilder.test.jsx
index 4016cc85b7..c8deb1f787 100644
--- a/client/src/pages/UniverseBuilder.test.jsx
+++ b/client/src/pages/UniverseBuilder.test.jsx
@@ -42,7 +42,8 @@ describe('CategoryEditor — promote wiring', () => {
expect(promoteBtn).not.toHaveAttribute('aria-haspopup');
await user.click(promoteBtn);
- expect(onPromote).toHaveBeenCalledExactlyOnceWith(sampleVariation, undefined);
+ expect(onPromote).toHaveBeenCalledTimes(1);
+ expect(onPromote).toHaveBeenCalledWith(sampleVariation, undefined);
});
it('opens a trunk-picker menu when bucketKind is "other" instead of promoting directly', async () => {
@@ -73,7 +74,8 @@ describe('CategoryEditor — promote wiring', () => {
await user.click(screen.getByRole('button', { name: /Promote to canon — pick a trunk/i }));
await user.click(screen.getByRole('menuitem', { name: 'Places' }));
- expect(onPromote).toHaveBeenCalledExactlyOnceWith(sampleVariation, { targetKind: 'settings' });
+ expect(onPromote).toHaveBeenCalledTimes(1);
+ expect(onPromote).toHaveBeenCalledWith(sampleVariation, { targetKind: 'settings' });
});
});