constantDef
Import from @varavel/vdl-plugin-sdk/testing.
Creates a ConstantDef with the given name and literal value.
Pass overrides to set annotations or doc.
Parameters
| Parameter | Type | Description |
|---|---|---|
name |
string |
Constant name. |
value |
LiteralValue |
Constant literal value. |
overrides |
Partial\<Omit\<ConstantDef, "position" | "name" | "annotations" | "value">> & object |
Optional constant overrides. |
Returns
A ConstantDef with defaults applied.