Skip to content

Added missing unit tests for the Recorder#1344

Merged
matux merged 1 commit into
masterfrom
matux/recorder-unit-tests
Oct 2, 2025
Merged

Added missing unit tests for the Recorder#1344
matux merged 1 commit into
masterfrom
matux/recorder-unit-tests

Conversation

@matux

@matux matux commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

Description of the change

Adds comprehensive unit-testing coverage for Recorder.

@matux matux requested a review from Copilot October 2, 2025 18:09
@matux matux self-assigned this Oct 2, 2025

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

This PR adds comprehensive unit test coverage for the Recorder class. The tests cover constructor initialization, configuration management, recording state properties, buffer operations, and event collection functionality.

Key changes:

  • Added complete unit test suite for the Recorder class constructor and core methods
  • Added test for the _replayEndEvent static method in the existing test file
  • Tests cover options handling, buffer management, state tracking, and event processing

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/replay/unit/recorder.test.js New comprehensive test suite covering Recorder constructor, options, configuration, state properties, and buffer operations
test/replay/unit/recorder.collectEvents.test.js Added test for the _replayEndEvent static method with proper timestamp mocking

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@matux matux merged commit dd29abd into master Oct 2, 2025
4 checks passed
@matux matux deleted the matux/recorder-unit-tests branch October 2, 2025 18:18
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