Node TAP
    Preparing search index...
    Index

    Constructors

    Accessors

    Spies, Mocks, and Fixtures

    Constructors

    Accessors

    Spies, Mocks, and Fixtures

    • get testdirName(): string

      The name of the folder that this test will use with @tapjs/fixture!index.TestFixtures#testdir.

      By default, it uses a folder name based on the name of the test file and subtest, within .tap/fixtures in the root of the project.

      Returns string

    • set testdirName(td: string): void

      Parameters

      • td: string

      Returns void

    • Create a test directory, optionally filling it up with contents

      The testdir will be automatically deleted at the end of the test.

      To not delete the directory after the test, use the saveFixture: true option when creating the test, or specify --save-fixture on the command line or in the tap configuration.

      Parameters

      Returns string