Polyman Documentation - v3.1.0
    Preparing search index...

    Function validatorSelfTestWarning

    • Returns a warning when the validator's self-tests contain no test with the INVALID verdict (no tests file configured, an empty or unreadable file, or VALID-only tests). Returns null when at least one INVALID test exists. Never throws: a broken tests file already fails the test-validator step.

      Parameters

      Returns string | null

      The warning text, or null when there is none

      const warning = validatorSelfTestWarning(config.validator);
      if (warning) fmt.warning(warning);