diff --git a/client/package-lock.json b/client/package-lock.json index 33894e72e2..9614c2b6fe 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -26,7 +26,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 d29da45be4..edd7b7eed7 100644 --- a/client/package.json +++ b/client/package.json @@ -37,7 +37,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 13dfe5fca5..c4c25de0fd 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 `). | `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 |