import {
  TEST_TYPES,
  WU_TYPES
} from "./chunk-V6OJGLBA.js";

// ../core/dist/wu-type-helpers.js
function isNonEmptyArray(value) {
  return Array.isArray(value) && value.length > 0;
}
function isDocumentationType(type) {
  return typeof type === "string" && type === WU_TYPES.DOCUMENTATION;
}
function isProcessType(type) {
  return typeof type === "string" && type === WU_TYPES.PROCESS;
}
function isDocsOrProcessType(type) {
  return isDocumentationType(type) || isProcessType(type);
}
function hasAnyTests(tests) {
  if (!tests || typeof tests !== "object")
    return false;
  const t = tests;
  return isNonEmptyArray(t[TEST_TYPES.MANUAL]) || isNonEmptyArray(t[TEST_TYPES.UNIT]) || isNonEmptyArray(t[TEST_TYPES.E2E]) || isNonEmptyArray(t[TEST_TYPES.INTEGRATION]);
}
function hasManualTests(tests) {
  if (!tests || typeof tests !== "object")
    return false;
  const t = tests;
  return isNonEmptyArray(t[TEST_TYPES.MANUAL]);
}

export {
  isDocumentationType,
  isDocsOrProcessType,
  hasAnyTests,
  hasManualTests
};
