Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { join } from "path";
import { Suppression } from "suppressions";
import { parse as yamlParse } from "yaml";
Expand Down Expand Up @@ -719,7 +719,7 @@
: "";

return {
success: true, // Always return success to avoid blocking PRs, errors are reported in stdOutput
success,
stdOutput: `[${this.name}]: validation ${success ? "passed" : "failed"}.\n${stdOutputFailedResults}`,
};
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { afterEach, beforeEach, describe, it, MockInstance, vi } from "vitest";

import { contosoTspConfig } from "@azure-tools/specs-shared/test/examples";
Expand Down Expand Up @@ -744,7 +744,7 @@

const rule = new SdkTspConfigValidationRule(c.subRules);
const result = await rule.execute(c.folder);
strictEqual(result.success, true); // Non-management should always pass
strictEqual(result.success, c.success); // Non-management should always pass
if (c.success)
strictEqual(result.stdOutput?.includes("[SdkTspConfigValidation]: validation passed."), true);
if (!c.success)
Expand Down
Loading