@exodus/test
    Preparing search index...

    Interface SuiteContext

    An instance of SuiteContext is passed to each suite function in order to interact with the test runner. However, the SuiteContext constructor is not exposed as part of the API.

    v18.7.0, v16.17.0

    interface SuiteContext {
        filePath: string | undefined;
        name: string;
        signal: AbortSignal;
    }
    Index

    Properties

    Properties

    filePath: string | undefined

    The absolute path of the test file that created the current suite. If a test file imports additional modules that generate suites, the imported suites will return the path of the root test file.

    v22.6.0

    name: string

    The name of the suite.

    v18.8.0, v16.18.0

    signal: AbortSignal

    Can be used to abort test subtasks when the test has been aborted.

    v18.7.0, v16.17.0