Skip to content

Add integration tests for PitchBlocks#4956

Open
AviraL0013 wants to merge 2 commits intosugarlabs:masterfrom
AviraL0013:test-pitchblocks
Open

Add integration tests for PitchBlocks#4956
AviraL0013 wants to merge 2 commits intosugarlabs:masterfrom
AviraL0013:test-pitchblocks

Conversation

@AviraL0013
Copy link

This PR adds integration-style tests for PitchBlocks, following the same mocking and execution strategy used in existing block tests.

PitchBlocks depend heavily on the Logo runtime and Singer state, so tests validate observable behavior using mocked execution contexts rather than isolated units.

To support Jest-based testing, this PR also adds a guarded CommonJS export for setupPitchBlocks, consistent with other block modules in the codebase. The export is wrapped to avoid any impact in browser environments.

No runtime behavior is changed.
@walterbender Could you please review this?

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

@walterbender
Copy link
Member

Overall, this looks good, but it would be good to add to the current PitchBlocks.tests.js instead of adding another file.

@walterbender
Copy link
Member

Apologies for the very very tardy review. I had been leaving reviews of tests to other community members.

@vanshika2720
Copy link
Contributor

@AviraL0013 Resolve ES Lint errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants