API
All exports come from the package root:
import { installOrder, isRunningInTest, order } from '@repobuddy/test'| Export | Kind | Purpose | Page |
|---|---|---|---|
installOrder(expect) |
function | Adds expect.order to a runner’s expect |
installOrder |
order |
value | The OrderApi that installOrder attaches |
installOrder |
isRunningInTest() |
function | Whether the code runs under a test runner | isRunningInTest |
AssertOrder |
class | Re-exported from assertron |
Types |
InvalidOrder |
class | Re-exported from assertron |
Types |
OrderApi |
type | { plan(steps?: number): AssertOrder } |
Types |
ExpectWithOrder |
type | { order: OrderApi } |
Types |