NPM Build Utilities @ 0.3.0-alpha.9
    Preparing search index...

    Interface Test

    The required shape for a test stage.

    TestStage.ARGS_DEFAULT For defaults.

    0.1.0-alpha

    interface Test {
        js:
            | false
            | {
                jestCmd?: (
                    props: { config: Config.Internal; params: Params },
                ) => string;
                tidy?: string[];
                warnWhenNoConfigFile?: boolean;
            };
        scss: boolean;
        utils: { compiler?: Stage_Compiler; fs?: FileSystem };
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    js:
        | false
        | {
            jestCmd?: (
                props: { config: Config.Internal; params: Params },
            ) => string;
            tidy?: string[];
            warnWhenNoConfigFile?: boolean;
        }

    Type Declaration

    • false
    • {
          jestCmd?: (props: { config: Config.Internal; params: Params }) => string;
          tidy?: string[];
          warnWhenNoConfigFile?: boolean;
      }
      • OptionaljestCmd?: (props: { config: Config.Internal; params: Params }) => string

        Use an alternative jest CLI command.

        0.3.0-alpha.9

      • Optionaltidy?: string[]

        File globs to be removed after tests are complete.

        0.2.0-alpha — If undefined, these paths are set by TestStage.tsConfigTidyPaths.

      • OptionalwarnWhenNoConfigFile?: boolean

        Whether to output a warning (and prompt to create) if no jest config file is found at the expected paths.

        0.3.0-alpha.9

    scss: boolean
    utils: { compiler?: Stage_Compiler; fs?: FileSystem }

    Optional class instances to use.