interface

test.ExtendTest

interface ExtendTest<Context>

The type of test.extend.

Referenced types

type Fixtures<Added, Context = object> = { [K in keyof Added]: Fixture<Added[Name], Omit<Added, Name> & Context & TestContext> | [Fixture<Added[Name], Omit<Added, Name> & Context & TestContext>, FixtureOptions] }

interface TestWithContext<Context, Row extends ReadonlyArray<unknown> = []>

A test whose callbacks receive the TestContext instead of a done callback.

interface FixtureOptions

  • auto?: boolean

    Set up the fixture for every test, even tests that don't destructure it.

  • scope?: 'file' | 'worker' | 'test'

    With "file" or "worker", the fixture is set up once, for the first test that needs it, and torn down after the file's last test.