docs: document vitest routing maps

This commit is contained in:
Peter Steinberger
2026-06-04 23:59:11 -04:00
parent 613a2835cb
commit bafe17e60b
29 changed files with 29 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
// Test routing globs for agent core, embedded-agent, tool, and support suites.
export const agentsAllTestPatterns = ["src/agents/**/*.test.ts"];
export const agentsCoreTestPatterns = ["src/agents/*.test.ts"];

View File

@@ -1,3 +1,4 @@
// Test routing roots and globs for core channel tests and channel plugin tests.
import path from "node:path";
import { BUNDLED_PLUGIN_PATH_PREFIX } from "../../scripts/lib/bundled-plugin-paths.mjs";
import { splitChannelExtensionTestRoots } from "./vitest.extension-channel-split-paths.mjs";

View File

@@ -1,3 +1,4 @@
// Test routing map for lightweight command tests and their source triggers.
const normalizeRepoPath = (value) => value.replaceAll("\\", "/");
const commandsLightEntries = [

View File

@@ -1,3 +1,4 @@
// Test routing roots for the ACP extension suite.
export const acpxExtensionTestRoots = ["extensions/acpx"];
export function isAcpxExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing roots for active-memory extension tests.
export const activeMemoryExtensionTestRoots = ["extensions/active-memory"];
export function isActiveMemoryExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing roots for browser extension tests.
export const browserExtensionTestRoots = ["extensions/browser"];
export function isBrowserExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing specs for channel plugins split into dedicated Vitest configs.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const splitChannelExtensionShardSpecs = [

View File

@@ -1,3 +1,4 @@
// Test routing roots for Codex extension tests.
export const codexExtensionTestRoots = ["extensions/codex"];
export function isCodexExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing roots for diffs extension tests.
export const diffsExtensionTestRoots = ["extensions/diffs"];
export function isDiffsExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing roots for Feishu extension tests.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const feishuExtensionIds = ["feishu"];

View File

@@ -1,3 +1,4 @@
// Test routing roots for IRC extension tests.
export const ircExtensionTestRoots = ["extensions/irc"];
export function isIrcExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing roots for Matrix extension tests.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const matrixExtensionIds = ["matrix"];

View File

@@ -1,3 +1,4 @@
// Test routing roots for Mattermost extension tests.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const mattermostExtensionIds = ["mattermost"];

View File

@@ -1,3 +1,4 @@
// Test routing roots for media generation, media understanding, and voice plugins.
export const mediaExtensionTestRoots = [
"extensions/alibaba",
"extensions/deepgram",

View File

@@ -1,3 +1,4 @@
// Test routing roots for memory extension suites.
export const memoryExtensionTestRoots = [
"extensions/memory-core",
"extensions/memory-lancedb",

View File

@@ -1,3 +1,4 @@
// Test routing roots for miscellaneous messaging extension suites.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const messagingExtensionIds = [

View File

@@ -1,3 +1,4 @@
// Test routing roots for miscellaneous provider/tool extension suites.
export const miscExtensionTestRoots = [
"extensions/arcee",
"extensions/brave",

View File

@@ -1,3 +1,4 @@
// Test routing roots for Microsoft Teams extension tests.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const msTeamsExtensionIds = ["msteams"];

View File

@@ -1,3 +1,4 @@
// Test routing roots for model provider extension suites.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const providerExtensionIds = [

View File

@@ -1,3 +1,4 @@
// Test routing roots for QA channel/lab extension tests.
export const qaExtensionTestRoots = ["extensions/qa-channel", "extensions/qa-lab"];
export function isQaExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing roots for Telegram extension tests.
export const telegramExtensionTestRoots = ["extensions/telegram"];
export function isTelegramExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing roots for voice-call extension tests.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const voiceCallExtensionIds = ["voice-call"];

View File

@@ -1,3 +1,4 @@
// Test routing roots for WhatsApp extension tests.
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
export const whatsAppExtensionIds = ["whatsapp"];

View File

@@ -1,3 +1,4 @@
// Test routing roots for Zalo extension tests.
export const zaloExtensionTestRoots = ["extensions/zalo", "extensions/zalouser"];
export function isZaloExtensionRoot(root) {

View File

@@ -1,3 +1,4 @@
// Test routing map for lightweight plugin SDK tests and source triggers.
const normalizeRepoPath = (value) => value.replaceAll("\\", "/");
const pluginSdkLightEntries = [

View File

@@ -1,3 +1,4 @@
// Full-suite Vitest shard definitions used by test-projects and CI planning.
export const autoReplyCoreTestInclude = ["src/auto-reply/*.test.ts"];
export const autoReplyCoreTestExclude = ["src/auto-reply/reply*.test.ts"];

View File

@@ -1,3 +1,4 @@
// Test routing globs and predicates for UI unit tests.
export const unitUiIncludePatterns = [
"ui/src/ui/app-chat.test.ts",
"ui/src/ui/chat/**/*.test.ts",

View File

@@ -1,3 +1,4 @@
// Unit-fast test discovery and classification helpers for fast local routing.
import { spawnSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Unit test routing globs and boundary/bundled-plugin exclusions.
import path from "node:path";
import { BUNDLED_PLUGIN_ROOT_DIR } from "../../scripts/lib/bundled-plugin-paths.mjs";