gjs-test
    Preparing search index...

    Class Suite

    A collection of tests and other suites.

    Hierarchy (View Summary)

    Index
    • Create a new Suite.

      Parameters

      • parent: Suite | null

        The suite that contains this suite.

      • name: string

        Suite name.

      • fn: (arg0: Suite) => void

        The function that populates the suite.

      Returns Suite

    • get fullName(): string

      Full name of the Node, including the containing suite name.

      Returns string

      Full name as string.

    • get name(): string

      Returns string

    • Add a nested test suite.

      Parameters

      • name: string

        Test suite name.

      • fn: (arg0: Suite) => void

        The function that populates the suite.

      Returns void

    • Add a test.

      Parameters

      • name: string

        Test name.

      • fn: (arg0: Test) => void | Promise<void>

        The function that implements the test.

      Returns void