From 4bce945528ac6c8b90d342f46ce17d1ed7f05343 Mon Sep 17 00:00:00 2001 From: Walt Jones Date: Thu, 23 Oct 2025 10:38:29 -0400 Subject: [PATCH] test predicate default configuration --- test/replay/unit/replayPredicates.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/replay/unit/replayPredicates.test.js b/test/replay/unit/replayPredicates.test.js index 3b4e598e..b1468e4a 100644 --- a/test/replay/unit/replayPredicates.test.js +++ b/test/replay/unit/replayPredicates.test.js @@ -36,6 +36,18 @@ describe('Replay', function () { replayPredicates = new ReplayPredicates(replayConfig); }); + it('should initialize with default occurrence trigger', function () { + expect(replayPredicates.triggers).to.deep.equal([ + { + type: 'occurrence', + level: ['error', 'critical'], + preDuration: 300, + postDuration: 5, + samplingRatio: 1.0, + }, + ]); + }); + it('should set maxPreDuration', function () { replayPredicates.configure({ ...replayConfig,