Skip to content

feat: improve visit command#37

Merged
kevinccbsg merged 1 commit into
mainfrom
feat/improve-visit-command
Oct 6, 2025
Merged

feat: improve visit command#37
kevinccbsg merged 1 commit into
mainfrom
feat/improve-visit-command

Conversation

@kevinccbsg

@kevinccbsg kevinccbsg commented Oct 6, 2025

Copy link
Copy Markdown
Member

This pull request refactors the way delays are handled in network request mocking and the visit command. The main improvement is the replacement of a locally defined sleep function with a shared wait utility, and the extraction of the visit logic into its own module for better code reuse and clarity.

Refactoring and Code Reuse:

  • Replaced the locally defined sleep function in mockBridge.ts with the shared wait utility for consistent delay handling across the codebase. (src/commands/mockBridge.ts) [1] [2] [3] [4]
  • Extracted the visit logic into a new visit command module, which now includes a delay using the shared wait utility and improved logging. (src/commands/visit.ts, src/twd.ts) [1] [2] [3]

This closes #30

@kevinccbsg kevinccbsg merged commit c326810 into main Oct 6, 2025
4 checks passed
@kevinccbsg kevinccbsg deleted the feat/improve-visit-command branch October 6, 2025 18:34
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.

[commans] improve visit command

1 participant