using NeonSprawl.Server.Game.Skills;

namespace NeonSprawl.Server.Tests.Game.Skills;

internal static class SkillCatalogTestPaths
{
    internal static string DiscoverRepoSkillsDirectory() =>
        SkillCatalogPathResolution.TryDiscoverSkillsDirectory(AppContext.BaseDirectory)
        ?? throw new InvalidOperationException(
            "Could not discover repo content/skills from AppContext.BaseDirectory; run tests from the neon-sprawl clone.");

    internal static string DiscoverRepoSkillDefSchemaPath() =>
        SkillCatalogPathResolution.ResolveSkillDefSchemaPath(
            DiscoverRepoSkillsDirectory(),
            configuredSchemaPath: null,
            contentRootPath: string.Empty);
}
