Skip to content

Conversation

@lt-zeeshan
Copy link
Contributor

This pull request introduces a new configuration option, allowDuplicateSnapshotNames, to provide users with more control over handling duplicate snapshot names in the application. The changes ensure that this option is integrated into the configuration schema, context, and snapshot processing logic.

New Feature: allowDuplicateSnapshotNames Configuration

  • Context Initialization (src/lib/ctx.ts):

    • Added a new property, allowDuplicateSnapshotNames, to the context object, defaulting to false. This property is set based on the configuration file. [1] [2] [3]
  • Configuration Schema Validation (src/lib/schemaValidation.ts):

    • Updated the schema to include allowDuplicateSnapshotNames as a boolean property, with an appropriate error message for invalid values.
  • Snapshot Processing Logic (src/lib/snapshotQueue.ts):

    • Modified the logic to skip duplicate snapshots only if allowDuplicateSnapshotNames is not enabled. This ensures that users can opt to allow duplicates if desired.
  • Type Definition (src/types.ts):

    • Updated the Context interface to include the optional allowDuplicateSnapshotNames property.

@parthlambdatest parthlambdatest merged commit a976087 into LambdaTest:stage Jul 18, 2025
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