Skip to content

Remove redundant mock-socket devDependency - #515

Merged
cigamit merged 1 commit into
ctrliq:mainfrom
blaipr:remove/mock-socket
Jun 25, 2026
Merged

Remove redundant mock-socket devDependency#515
cigamit merged 1 commit into
ctrliq:mainfrom
blaipr:remove/mock-socket

Conversation

@blaipr

@blaipr blaipr commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

SUMMARY

Remove mock-socket from devDependencies - it is redundant.

  • mock-socket is a direct dependency of jest-websocket-mock and is
    installed automatically as a transitive dep
  • The project never imports mock-socket directly
  • The explicit devDependency entry is unnecessary
  • Lint, Jest (552 suites, 2,908 tests), and production build all pass without it

ISSUE TYPE

  • Bug, Docs Fix or other nominal change

COMPONENT NAME

  • UI

ASCENDER VERSION

awx: 25.4.1.dev

ADDITIONAL INFORMATION

Identified by auditing npm devDependencies for redundant entries.

mock-socket is a direct dependency of jest-websocket-mock and is
installed automatically as a transitive dep. The project never
imports mock-socket directly - the explicit devDependency entry
is unnecessary.

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.

Pull request overview

This PR removes a redundant UI devDependency (mock-socket) since it’s already pulled in transitively via jest-websocket-mock, and the codebase does not import mock-socket directly.

Changes:

  • Removed mock-socket from awx/ui/package.json devDependencies.
  • Updated awx/ui/package-lock.json to reflect removal of the direct devDependency entry (while retaining the transitive install via jest-websocket-mock).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
awx/ui/package.json Drops redundant direct mock-socket devDependency.
awx/ui/package-lock.json Removes the top-level devDependency entry for mock-socket while keeping it as a transitive dependency.
Files not reviewed (1)
  • awx/ui/package-lock.json: Generated file

@cigamit cigamit self-assigned this Jun 25, 2026
@cigamit cigamit added the dependencies Pull requests that update a dependency file label Jun 25, 2026
@cigamit
cigamit merged commit bc99064 into ctrliq:main Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Development

Successfully merging this pull request may close these issues.

3 participants