Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

test: add integration test for basic validation#1761

Merged
ChaituVR merged 1 commit into
masterfrom
test-add-basic-validation-tests
Jun 25, 2025
Merged

test: add integration test for basic validation#1761
ChaituVR merged 1 commit into
masterfrom
test-add-basic-validation-tests

Conversation

@wa0x6e

@wa0x6e wa0x6e commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

Add integration test for basic validation, adding 22 new tests

@wa0x6e wa0x6e changed the title fix: get supported protocols from hardcodes strategy module (#1760) test: add integration test for basic validation Jun 24, 2025
@wa0x6e
wa0x6e requested a review from Copilot June 24, 2025 15:28

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

Adds scaffolding for integration tests and marks missing validation for network inputs.

  • Introduces a test:integration npm script to run integration tests
  • Inserts a TODO in the validation logic to handle invalid networks

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/validations/validation.ts Added a TODO placeholder for invalid network handling
package.json Added test:integration script for integration tests
Comments suppressed due to low confidence (1)

src/validations/validation.ts:34

  • Implement the invalid network validation logic or remove this TODO to avoid leaving unimplemented code paths in production.
  // TODO: validate invalid networks

Comment thread package.json
"test:vp": "jest -i vp.test.ts",
"test:delegation": "jest -i delegation.test.ts",
"test:validation": "jest -i validation.test.ts",
"test:integration": "jest -i test/integration/",

Copilot AI Jun 24, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] Refine the Jest test script to target only integration test files, for example: "jest -i "test/integration/**/*.test.ts"" to avoid running unrelated files.

Suggested change
"test:integration": "jest -i test/integration/",
"test:integration": "jest -i \"test/integration/**/*.test.ts\"",

Copilot uses AI. Check for mistakes.
@wa0x6e
wa0x6e requested a review from ChaituVR June 24, 2025 15:29

@ChaituVR ChaituVR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

utAck

@ChaituVR
ChaituVR merged commit a663890 into master Jun 25, 2025
16 checks passed
@ChaituVR
ChaituVR deleted the test-add-basic-validation-tests branch June 25, 2025 06:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants