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

fix: remove redundant testing-library dom dependency (#7015)

[._.]/88b6f4d87156
diff --git a/client/package-lock.json b/client/package-lock.json
index e6d577842f..96e56895fc 100644
--- a/client/package-lock.json
+++ b/client/package-lock.json
@@ -25,7 +25,6 @@
"devDependencies": {
"@biomejs/biome": "2.5.12",
"@tailwindcss/postcss": "4.3.3",
- "@testing-library/dom": "10.4.1",
"@testing-library/jest-dom": "7.0.1",
"@testing-library/react": "16.3.3",
"@testing-library/user-event": "14.6.7",
diff --git a/client/package.json b/client/package.json
index 253ce99cc7..87a25d2d01 100644
--- a/client/package.json
+++ b/client/package.json
@@ -36,7 +36,6 @@
"devDependencies": {
"@biomejs/biome": "2.5.12",
"@tailwindcss/postcss": "4.3.3",
- "@testing-library/dom": "10.4.1",
"@testing-library/jest-dom": "7.0.1",
"@testing-library/react": "16.3.3",
"@testing-library/user-event": "14.6.7",
diff --git a/client/src/components/writers-room/ExercisePanel.test.jsx b/client/src/components/writers-room/ExercisePanel.test.jsx
index 6f80fb2eef..4f20389413 100644
--- a/client/src/components/writers-room/ExercisePanel.test.jsx
+++ b/client/src/components/writers-room/ExercisePanel.test.jsx
@@ -1,6 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
-import { act, render, screen } from '@testing-library/react';
-import { fireEvent } from '@testing-library/dom';
+import { act, fireEvent, render, screen } from '@testing-library/react';
// The "Add to draft" promotion (#5300) only offers itself for a finished
// sprint that (a) actually captured prose, (b) belongs to the work currently
diff --git a/client/src/components/writers-room/WorkEditor.perf.test.jsx b/client/src/components/writers-room/WorkEditor.perf.test.jsx
index 64eb680720..4bc2730d03 100644
--- a/client/src/components/writers-room/WorkEditor.perf.test.jsx
+++ b/client/src/components/writers-room/WorkEditor.perf.test.jsx
@@ -1,6 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
-import { act, render } from '@testing-library/react';
-import { fireEvent } from '@testing-library/dom';
+import { act, fireEvent, render } from '@testing-library/react';
import { createMemoryRouter, RouterProvider } from 'react-router';
// Regression guard for #3387: typing in the WorkEditor body must NOT re-render
diff --git a/client/src/components/writers-room/WorkEditor.test.jsx b/client/src/components/writers-room/WorkEditor.test.jsx
index 9766c0de9e..91cd84e2d6 100644
--- a/client/src/components/writers-room/WorkEditor.test.jsx
+++ b/client/src/components/writers-room/WorkEditor.test.jsx
@@ -1,6 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
-import { act, render, screen, within } from '@testing-library/react';
-import { fireEvent } from '@testing-library/dom';
+import { act, fireEvent, render, screen, within } from '@testing-library/react';
import { createMemoryRouter, RouterProvider } from 'react-router';
// Header layout contract for #3568: on a ~375px phone the WorkEditor header
diff --git a/docs/DEPS.md b/docs/DEPS.md
index 5c14a07f19..aacf13adce 100644
--- a/docs/DEPS.md
+++ b/docs/DEPS.md
@@ -78,7 +78,7 @@ Before removing a Tier 3 candidate, run a transitive-dep check (`npm ls <pkg>`).
| `vitest` | 1 | KEEP | client test runner | happy-dom environment |
| `happy-dom` | 1 | KEEP | test DOM | Paired with vitest. Replaced `jsdom` in #6144 — same suite, ~65% less time in `environment` |
| `@testing-library/jest-dom` | 1 | KEEP | test matchers | |
-| `@testing-library/dom` | 1 | KEEP | DOM test utilities | Foundation for the client Testing Library stack |
+| `@testing-library/dom` | — | REMOVED (direct) | DOM test utilities | 2026-09-12 → imported through `@testing-library/react`; remains in the tree transitively, so this removes only the redundant direct pin |
| `@testing-library/react` | 1 | KEEP | component tests | |
| `@testing-library/user-event` | 1 | KEEP | interaction tests | |
| `rollup-plugin-visualizer` | 2 | KEEP | bundle-size analysis | Dev-only, opt-in |