feat: duplicate workflow drafts (#2539)
This commit is contained in:
@@ -846,6 +846,24 @@ test("accepts source-backed coverage for every settings route and MCP tool", asy
|
||||
await assert.doesNotReject(validateCoverageInventory(fixture));
|
||||
});
|
||||
|
||||
test("accepts a route-path export between the settings table and renderer", async () => {
|
||||
const fixture = await createCoverageRepo();
|
||||
const routePath = path.join(
|
||||
fixture.repoRoot,
|
||||
"apps/web/src/settings-routes.tsx",
|
||||
);
|
||||
const source = await fs.readFile(routePath, "utf8");
|
||||
await fs.writeFile(
|
||||
routePath,
|
||||
source.replace(
|
||||
"};\n\nexport function SettingsRoutes",
|
||||
"};\n\nexport const SETTINGS_ROUTE_PATHS = new Set(Object.keys(SETTINGS_ROUTES));\n\nexport function SettingsRoutes",
|
||||
),
|
||||
);
|
||||
|
||||
await assert.doesNotReject(validateCoverageInventory(fixture));
|
||||
});
|
||||
|
||||
test("rejects a shipped settings route with no documentation owner", async () => {
|
||||
const fixture = await createCoverageRepo({
|
||||
settingsRoutes: [
|
||||
|
||||
Reference in New Issue
Block a user