UNPKG

playwright-testrail-sync

Version:

TestRail Integration for Playwright with comprehensive logging and error handling

47 lines 1.14 kB
"use strict"; /** * Option merger * Handles merging user options with defaults */ Object.defineProperty(exports, "__esModule", { value: true }); exports.mergeWithDefaults = mergeWithDefaults; /** * Merge options with defaults */ function mergeWithDefaults(options) { return { testRail: options.testRail, logging: { level: "info", console: true, file: false, verbose: false, ...options.logging, }, attachments: { enabled: true, maxSize: 10, allowedTypes: [ "png", "jpg", "jpeg", "gif", "txt", "log", "webm", "mp4", "avi", "mov", ], screenshotOnFailure: true, ...options.attachments, }, validation: { strictMode: true, validateCaseIds: true, validateRunId: true, ...options.validation, }, }; } //# sourceMappingURL=option-merger.js.map