mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
docs: document vitest config files
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Vitest acp config wires the acp test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createAcpVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest agents core config wires the agents core test shard.
|
||||
import { agentsCoreTestPatterns } from "./vitest.agents-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest agents embedded agent config wires the agents embedded agent test shard.
|
||||
import { agentsEmbeddedTestPatterns } from "./vitest.agents-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest agents support config wires the agents support test shard.
|
||||
import { agentsSupportExcludePatterns, agentsSupportTestPatterns } from "./vitest.agents-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest agents tools config wires the agents tools test shard.
|
||||
import { agentsToolsTestPatterns } from "./vitest.agents-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest agents config wires the agents test shard.
|
||||
import { agentsAllTestPatterns } from "./vitest.agents-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest auto reply core config wires the auto reply core test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { autoReplyCoreTestExclude, autoReplyCoreTestInclude } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest auto reply reply config wires the auto reply reply test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { autoReplyReplySubtreeTestInclude } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest auto reply top level config wires the auto reply top level test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { autoReplyTopLevelReplyTestInclude } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest auto reply config wires the auto reply test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createAutoReplyVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest boundary config wires the boundary test shard.
|
||||
import { defineProject } from "vitest/config";
|
||||
import { loadPatternListFromEnv, narrowIncludePatternsForCli } from "./vitest.pattern-file.ts";
|
||||
import { resolveVitestIsolation } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest bundled plugin paths helper lists test file patterns for the bundled plugin paths shard.
|
||||
export const BUNDLED_PLUGIN_ROOT_DIR = "extensions";
|
||||
export const BUNDLED_PLUGIN_PATH_PREFIX = `${BUNDLED_PLUGIN_ROOT_DIR}/`;
|
||||
export const BUNDLED_PLUGIN_TEST_GLOB = `${BUNDLED_PLUGIN_ROOT_DIR}/**/*.test.ts`;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest bundled config wires the bundled test shard.
|
||||
import path from "node:path";
|
||||
import {
|
||||
bundledPluginDependentUnitTestFiles,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest channels config wires the channels test shard.
|
||||
import { coreChannelTestInclude } from "./vitest.channel-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest cli config wires the cli test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createCliVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest commands light config wires the commands light test shard.
|
||||
import { commandsLightTestFiles } from "./vitest.commands-light-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { getUnitFastTestFiles } from "./vitest.unit-fast-paths.mjs";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest commands config wires the commands test shard.
|
||||
import { commandsLightTestFiles } from "./vitest.commands-light-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest config config wires the config test shard.
|
||||
import { defineConfig } from "vitest/config";
|
||||
import {
|
||||
resolveDefaultVitestPool,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest contracts channel config config wires the contracts channel config test shard.
|
||||
import {
|
||||
channelConfigContractPatterns,
|
||||
createContractsVitestConfig,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest contracts channel registry config wires the contracts channel registry test shard.
|
||||
import {
|
||||
channelRegistryContractPatterns,
|
||||
createContractsVitestConfig,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest contracts channel session config wires the contracts channel session test shard.
|
||||
import {
|
||||
channelSessionContractPatterns,
|
||||
createContractsVitestConfig,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest contracts channel surface config wires the contracts channel surface test shard.
|
||||
import {
|
||||
channelSurfaceContractPatterns,
|
||||
createContractsVitestConfig,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest contracts plugin config wires the contracts plugin test shard.
|
||||
import { createContractsVitestConfig, pluginContractPatterns } from "./vitest.contracts-shared.ts";
|
||||
|
||||
export default createContractsVitestConfig(pluginContractPatterns, process.env, process.argv, {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest contract shared helpers build contract test project configuration.
|
||||
import path from "node:path";
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { loadPatternListFromEnv, narrowIncludePatternsForCli } from "./vitest.pattern-file.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest cron config wires the cron test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createCronVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest daemon config wires the daemon test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createDaemonVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest e2e config wires the e2e test shard.
|
||||
import os from "node:os";
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { BUNDLED_PLUGIN_E2E_TEST_GLOB } from "./vitest.bundled-plugin-paths.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension acpx config wires the extension acpx test shard.
|
||||
import { acpxExtensionTestRoots } from "./vitest.extension-acpx-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension active memory config wires the extension active memory test shard.
|
||||
import { activeMemoryExtensionTestRoots } from "./vitest.extension-active-memory-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension browser config wires the extension browser test shard.
|
||||
import { browserExtensionTestRoots } from "./vitest.extension-browser-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension channel single config helper supports extension channel single config test configuration.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createSingleChannelExtensionVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension channels config wires the extension channels test shard.
|
||||
import {
|
||||
extensionChannelOverrideExcludeGlobs,
|
||||
extensionChannelTestInclude,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension clickclack config wires the extension clickclack test shard.
|
||||
import { createSingleChannelExtensionVitestConfig } from "./vitest.extension-channel-single-config.ts";
|
||||
|
||||
export function createExtensionClickClackVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex app server attempt extra config wires the extension codex app server attempt extra test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionCodexAppServerAttemptExtraVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex app server attempt light config wires the extension codex app server attempt light test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionCodexAppServerAttemptLightVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex app server attempt support config wires the extension codex app server attempt support test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionCodexAppServerAttemptSupportVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex app server attempt config wires the extension codex app server attempt test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionCodexAppServerAttemptVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex app server runtime config wires the extension codex app server runtime test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionCodexAppServerRuntimeVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex app server support config wires the extension codex app server support test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
const coveredAppServerPatterns = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex app server tools config wires the extension codex app server tools test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionCodexAppServerToolsVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex surface config wires the extension codex surface test shard.
|
||||
import { codexExtensionTestRoots } from "./vitest.extension-codex-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension codex config wires the extension codex test shard.
|
||||
import { codexExtensionTestRoots } from "./vitest.extension-codex-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension diffs config wires the extension diffs test shard.
|
||||
import { diffsExtensionTestRoots } from "./vitest.extension-diffs-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension discord config wires the extension discord test shard.
|
||||
import { createSingleChannelExtensionVitestConfig } from "./vitest.extension-channel-single-config.ts";
|
||||
|
||||
export function createExtensionDiscordVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension feishu config wires the extension feishu test shard.
|
||||
import { feishuExtensionTestRoots } from "./vitest.extension-feishu-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension imessage config wires the extension imessage test shard.
|
||||
import { createSingleChannelExtensionVitestConfig } from "./vitest.extension-channel-single-config.ts";
|
||||
|
||||
export function createExtensionImessageVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension irc config wires the extension irc test shard.
|
||||
import { ircExtensionTestRoots } from "./vitest.extension-irc-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension line config wires the extension line test shard.
|
||||
import { createSingleChannelExtensionVitestConfig } from "./vitest.extension-channel-single-config.ts";
|
||||
|
||||
export function createExtensionLineVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension matrix config wires the extension matrix test shard.
|
||||
import { matrixExtensionTestRoots } from "./vitest.extension-matrix-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension mattermost config wires the extension mattermost test shard.
|
||||
import { mattermostExtensionTestRoots } from "./vitest.extension-mattermost-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension media config wires the extension media test shard.
|
||||
import { mediaExtensionTestRoots } from "./vitest.extension-media-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension memory config wires the extension memory test shard.
|
||||
import { memoryExtensionTestRoots } from "./vitest.extension-memory-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension messaging config wires the extension messaging test shard.
|
||||
import { messagingExtensionTestRoots } from "./vitest.extension-messaging-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension misc config wires the extension misc test shard.
|
||||
import { miscExtensionTestRoots } from "./vitest.extension-misc-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension msteams config wires the extension msteams test shard.
|
||||
import { msTeamsExtensionTestRoots } from "./vitest.extension-msteams-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension provider openai config wires the extension provider openai test shard.
|
||||
import path from "node:path";
|
||||
import { providerOpenAiExtensionTestRoots } from "./vitest.extension-provider-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension providers config wires the extension providers test shard.
|
||||
import { providerExtensionTestRoots } from "./vitest.extension-provider-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension qa config wires the extension qa test shard.
|
||||
import { qaExtensionTestRoots } from "./vitest.extension-qa-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension signal config wires the extension signal test shard.
|
||||
import { createSingleChannelExtensionVitestConfig } from "./vitest.extension-channel-single-config.ts";
|
||||
|
||||
export function createExtensionSignalVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension slack config wires the extension slack test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createExtensionSlackVitestConfig(
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension telegram config wires the extension telegram test shard.
|
||||
import { telegramExtensionTestRoots } from "./vitest.extension-telegram-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension voice call config wires the extension voice call test shard.
|
||||
import { voiceCallExtensionTestRoots } from "./vitest.extension-voice-call-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension whatsapp config wires the extension whatsapp test shard.
|
||||
import { whatsAppExtensionTestRoots } from "./vitest.extension-whatsapp-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extension zalo config wires the extension zalo test shard.
|
||||
import { zaloExtensionTestRoots } from "./vitest.extension-zalo-paths.mjs";
|
||||
import { loadPatternListFromEnv } from "./vitest.pattern-file.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest extensions config wires the extensions test shard.
|
||||
import { BUNDLED_PLUGIN_TEST_GLOB } from "./vitest.bundled-plugin-paths.ts";
|
||||
import { extensionExcludedChannelTestGlobs } from "./vitest.channel-paths.mjs";
|
||||
import { acpxExtensionTestRoots } from "./vitest.extension-acpx-paths.mjs";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full agentic config wires the full agentic test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full auto reply config wires the full auto reply test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core bundled config wires the full core bundled test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core contracts config wires the full core contracts test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core runtime config wires the full core runtime test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core support boundary config wires the full core support boundary test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core unit fast config wires the full core unit fast test shard.
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { sharedVitestConfig } from "./vitest.shared.config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core unit security config wires the full core unit security test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core unit src config wires the full core unit src test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core unit support config wires the full core unit support test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core unit ui config wires the full core unit ui test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full core unit config wires the full core unit test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest full extensions config wires the full extensions test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { fullSuiteVitestShards } from "./vitest.test-shards.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest gateway client config wires the gateway client test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createGatewayClientVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest gateway core config wires the gateway core test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
const nonCoreGatewayTestExclude = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest gateway methods config wires the gateway methods test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createGatewayMethodsVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest gateway server config wires the gateway server test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
const gatewayServerBackedHttpTests = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest gateway config wires the gateway test shard.
|
||||
import { createProjectShardVitestConfig } from "./vitest.project-shard-config.ts";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest hooks config wires the hooks test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createHooksVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest infra config wires the infra test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { boundaryTestFiles } from "./vitest.unit-paths.mjs";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest live config wires the live test shard.
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { BUNDLED_PLUGIN_LIVE_TEST_GLOB } from "./vitest.bundled-plugin-paths.ts";
|
||||
import baseConfig from "./vitest.config.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest logging config wires the logging test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createLoggingVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest media understanding config wires the media understanding test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createMediaUnderstandingVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest media config wires the media test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createMediaVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest pattern file helper reads include and exclude patterns from files.
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest performance config helper normalizes performance test environment settings.
|
||||
type EnvMap = Record<string, string | undefined>;
|
||||
|
||||
const isEnabled = (value: string | undefined): boolean => {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest plugin sdk light config wires the plugin sdk light test shard.
|
||||
import { pluginSdkLightTestFiles } from "./vitest.plugin-sdk-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { getUnitFastTestFiles } from "./vitest.unit-fast-paths.mjs";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest plugin sdk config wires the plugin sdk test shard.
|
||||
import { pluginSdkLightTestFiles } from "./vitest.plugin-sdk-paths.mjs";
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { bundledPluginDependentUnitTestFiles } from "./vitest.unit-paths.mjs";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest plugins config wires the plugins test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createPluginsVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest process config wires the process test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createProcessVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest project shard helper builds configs for full-suite shards.
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { nonIsolatedRunnerPath, sharedVitestConfig } from "./vitest.shared.config.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest runtime config config wires the runtime config test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createRuntimeConfigVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest scoped config helper builds test configs for scoped file patterns.
|
||||
import path from "node:path";
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { loadPatternListFromEnv, narrowIncludePatternsForCli } from "./vitest.pattern-file.ts";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest secrets config wires the secrets test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
|
||||
export function createSecretsVitestConfig(env?: Record<string, string | undefined>) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Vitest shared core config wires the shared core test shard.
|
||||
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
||||
import { getUnitFastTestFiles } from "./vitest.unit-fast-paths.mjs";
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user