FlagTest
Defined in: schema.ts:314
One pinned expectation for Flag.tests.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
context |
EvaluationContext |
The evaluation context to run the flag against. | schema.ts:318 |
expect |
object |
The expected outcome. At least one of variant / value must be set. |
schema.ts:320 |
expect.value? |
FlagValue |
Expected served value (deep-compared for json flags). |
schema.ts:324 |
expect.variant? |
string |
Expected served variant key. | schema.ts:322 |
name? |
string |
Human-readable label shown in gate failures (e.g. “enterprise user sees new flow”). | schema.ts:316 |