Skip to content

test: improve coverage for dataconnect load#10349

Open
joehan wants to merge 3 commits intomainfrom
test/dataconnect-load
Open

test: improve coverage for dataconnect load#10349
joehan wants to merge 3 commits intomainfrom
test/dataconnect-load

Conversation

@joehan
Copy link
Copy Markdown
Member

@joehan joehan commented Apr 15, 2026

Description

Add robust parsing and file manipulation tests for Data Connect load stages.

Scenarios Tested

  • Validating DataConnect config ingestion
  • Squashing boundary operations

### Description
Add robust parsing and file manipulation tests for Data Connect load stages.

### Scenarios Tested
- Validating DataConnect config ingestion
- Squashing boundary operations
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces unit tests for the readFirebaseJson and squashGraphQL functions in src/dataconnect/load.ts. The feedback identifies a violation of the repository's testing style guide regarding excessive mocking. Specifically, the tests for readFirebaseJson use sinon to stub the Config object, which can instead be initialized with real data to improve test robustness and readability.

Comment thread src/dataconnect/load.spec.ts
Comment thread src/dataconnect/load.spec.ts
@joehan joehan requested a review from fredzqm April 22, 2026 20:48
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.

3 participants