Skip to content

remove unused @testing-library/react dependency - #2514

Merged
grzanka merged 2 commits into
masterfrom
2503-remove-unused-testing-libraryreact-dependency
Nov 13, 2026
Merged

grzanka merged 2 commits into
masterfrom
2503-remove-unused-testing-libraryreact-dependency

Conversation

@martastn

@martastn martastn commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2503. Part of #2481.

@testing-library/react came with the Create React App template. Its only user was the template test src/App.test.tsx, where the render() call was already commented out; the file was deleted in #951. No test has imported it since: the suite consists of Jest unit tests and Selenium E2E tests, and none of them renders components with React Testing Library.

Changes

Documentation

Verified against master

  • production, demo and plg builds are byte-identical to master (129/129 files, incl. source maps)
  • Docker image: all 130 files served by nginx are byte-identical to master's image
  • tsc, ESLint, Prettier and unit tests give the same results as master
  • E2E tests give the same results as master
  • full run through the app against a local backend, in light and dark mode (login, examples, editor, project save, converter, SHIELD-HIT12A simulation, results with charts and tables, downloads, logout): same results, network requests and console as master

@martastn martastn linked an issue Nov 11, 2026 that may be closed by this pull request
@martastn martastn self-assigned this Nov 11, 2026
@grzanka
grzanka requested a balanced review from Copilot November 12, 2026 13:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The change is a straightforward cleanup that removes an unused dependency and updates the lockfile accordingly, with no active review issues indicated.

No open issues 🎉

What changed in this PR

Removes the unused @testing-library/react dependency from the project to reduce dependency surface and maintenance noise.

Changes:

  • Drops @testing-library/react from package.json.
  • Updates package-lock.json to remove the corresponding locked entries while keeping required related packages intact.
File Description
package.json Removes @testing-library/react from the declared dependencies.
package-lock.json Updates the lockfile to delete entries related to @testing-library/react.

Review effort: Balanced

@grzanka

grzanka commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

…testing-libraryreact-dependency

# Conflicts:
#	package-lock.json
#	package.json
@grzanka
grzanka added this pull request to the merge queue Nov 13, 2026
Merged via the queue into master with commit fa7a31f Nov 13, 2026
10 checks passed
@grzanka
grzanka deleted the 2503-remove-unused-testing-libraryreact-dependency branch November 13, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused @testing-library/react dependency

3 participants