Home > @uniformdev/context > Context > test

Context.test() method

Executes an A/B test with a given set of variants, showing the visitor's assigned variant (or selecting one to assign, if none is set yet)

Signature:

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

TestOptions<TVariant>

</td><td>

</td></tr> </tbody></table> Returns:

TestResult<TVariant>