You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add tests for TraitConfig format in local evaluation
Add tests verifying that segment matching works correctly when traits
are passed using the TraitConfig format ({ value, transient }) in
local evaluation mode. These tests expose a bug where TraitConfig
objects are passed to the engine without unwrapping the actual value,
causing segment rules to never match.
Tests added:
- getIdentityFlags with plain traits matches segment (baseline)
- getIdentityFlags with TraitConfig format matches segment
- getIdentityFlags with mixed trait formats matches segment
- getIdentitySegments with TraitConfig format matches segment
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments