Skip to main content

compileFixtures

Callable

  • compileFixtures<T>(inputCwd: string | URL, excludes?: (string | RegExp)[]): Fixture<T>[]

  • Generate an array of fixtures with a given time. Fixtures are extracted from .m?[j|t]sx? files (.js, .ts, .jsx, .tsx)


    Type parameters

    • T: unknown

    Parameters

    • inputCwd: string | URL
    • excludes: (string | RegExp)[] = []

      Optional array of file names to exclude

    Returns Fixture<T>[]

    Array of fixtures