diff --git a/package.json b/package.json index 5ce184d17e7..73896b8c3e4 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,12 @@ "@rollup/plugin-commonjs": "^28.0.6", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.4", - "@symfony/stimulus-testing": "^2.0.1", + "@testing-library/dom": "^10.4.0", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/user-event": "^14.6.1", "@types/node": "^22.6.0", "@vitest/browser": "^2.1.1", + "jsdom": "^26.1.0", "lightningcss": "^1.28.2", "playwright": "^1.47.0", "rollup": "^4.44.1", diff --git a/src/Cropperjs/assets/test/controller.test.ts b/src/Cropperjs/assets/test/controller.test.ts index 5f1de56ab8b..02e45acc868 100644 --- a/src/Cropperjs/assets/test/controller.test.ts +++ b/src/Cropperjs/assets/test/controller.test.ts @@ -8,8 +8,8 @@ */ import { Application, Controller } from '@hotwired/stimulus'; -import { clearDOM, mountDOM } from '@symfony/stimulus-testing'; import { getByTestId, waitFor } from '@testing-library/dom'; +import { clearDOM, mountDOM } from '../../../../test/stimulus-helpers'; import CropperjsController from '../src/controller'; let cropper: Cropper | null = null; @@ -44,7 +44,7 @@ describe('CropperjsController', () => { beforeEach(() => { container = mountDOM(`