Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Nov 20, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 20, 2025 21:06
Copy link

Copilot AI left a comment

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 adds TypeScript type checking and runtime validation tests for the MarkLogic documents API, covering probe, read, write, and remove operations.

Key Changes:

  • Added comprehensive type checking tests for documents API methods (probe, read, write, remove)
  • Added runtime validation tests to verify type definitions match actual behavior
  • Updated test compilation script to handle multiple test files

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
typescript-test-project/test.ts Added example usage of probe() and read() methods to demonstrate documents API
test-typescript/documents.test.ts Added comprehensive type-only tests validating documents API method signatures and return types
test-typescript/documents-runtime.test.ts Added runtime tests to verify type definitions match actual MarkLogic API behavior
package.json Updated test scripts to compile all runtime test files and added test:typescript command

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const uris = await resultProvider.result();

console.log("THE URIS", uris);
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

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

Debug console.log statement should be removed before merging. This appears to be leftover debugging code that doesn't provide value in production tests.

Suggested change
console.log("THE URIS", uris);

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented Nov 20, 2025

Copyright Validation Results
Total: 5 | Passed: 4 | Failed: 0 | Skipped: 1 | at: 2025-11-21 16:17:40 UTC | commit: ac43410

⏭️ Skipped (Excluded) Files

  • package.json

✅ Valid Files

  • marklogic.d.ts
  • test-typescript/documents-runtime.test.ts
  • test-typescript/documents.test.ts
  • typescript-test-project/test.ts

✅ All files have valid copyright headers!

@rjrudin rjrudin force-pushed the feature/25554-documents-ts branch 2 times, most recently from 7c53fe2 to bdb5ace Compare November 21, 2025 15:13
@rjrudin rjrudin force-pushed the feature/25554-documents-ts branch from bdb5ace to ac43410 Compare November 21, 2025 16:17
@rjrudin rjrudin merged commit 387f954 into develop Nov 21, 2025
5 of 6 checks passed
@rjrudin rjrudin deleted the feature/25554-documents-ts branch November 21, 2025 16:42
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.

2 participants