feat(FN-3920): export repo override regex from github-tracking module
Exported the repo override regex from `@fusion/core` for use across packages, replacing an internal import in the dashboard's GitHub tracking component with the public API from core. Tests were updated in both packages to cover the new export. Fusion-Task-Id: FN-3920
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { REPO_OVERRIDE_RE, resolveEffectiveGithubRepoDefault } from "../githubTracking";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
|
||||
vi.mock("@fusion/core", () => ({
|
||||
REPO_OVERRIDE_RE: /^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/,
|
||||
}));
|
||||
|
||||
import { REPO_OVERRIDE_RE } from "@fusion/core";
|
||||
import { resolveEffectiveGithubRepoDefault } from "../githubTracking";
|
||||
|
||||
describe("githubTracking helper", () => {
|
||||
it("accepts valid owner/repo values and rejects malformed values", () => {
|
||||
|
||||
Reference in New Issue
Block a user