mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:00:44 +00:00
test: name contract vitest projects
This commit is contained in:
@@ -3,4 +3,11 @@ import {
|
||||
createContractsVitestConfig,
|
||||
} from "./vitest.contracts-shared.ts";
|
||||
|
||||
export default createContractsVitestConfig(channelConfigContractPatterns);
|
||||
export default createContractsVitestConfig(
|
||||
channelConfigContractPatterns,
|
||||
process.env,
|
||||
process.argv,
|
||||
{
|
||||
name: "contracts-channel-config",
|
||||
},
|
||||
);
|
||||
|
||||
@@ -3,4 +3,11 @@ import {
|
||||
createContractsVitestConfig,
|
||||
} from "./vitest.contracts-shared.ts";
|
||||
|
||||
export default createContractsVitestConfig(channelRegistryContractPatterns);
|
||||
export default createContractsVitestConfig(
|
||||
channelRegistryContractPatterns,
|
||||
process.env,
|
||||
process.argv,
|
||||
{
|
||||
name: "contracts-channel-registry",
|
||||
},
|
||||
);
|
||||
|
||||
@@ -3,4 +3,11 @@ import {
|
||||
createContractsVitestConfig,
|
||||
} from "./vitest.contracts-shared.ts";
|
||||
|
||||
export default createContractsVitestConfig(channelSessionContractPatterns);
|
||||
export default createContractsVitestConfig(
|
||||
channelSessionContractPatterns,
|
||||
process.env,
|
||||
process.argv,
|
||||
{
|
||||
name: "contracts-channel-session",
|
||||
},
|
||||
);
|
||||
|
||||
@@ -3,4 +3,11 @@ import {
|
||||
createContractsVitestConfig,
|
||||
} from "./vitest.contracts-shared.ts";
|
||||
|
||||
export default createContractsVitestConfig(channelSurfaceContractPatterns);
|
||||
export default createContractsVitestConfig(
|
||||
channelSurfaceContractPatterns,
|
||||
process.env,
|
||||
process.argv,
|
||||
{
|
||||
name: "contracts-channel-surface",
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { createContractsVitestConfig, pluginContractPatterns } from "./vitest.contracts-shared.ts";
|
||||
|
||||
export default createContractsVitestConfig(pluginContractPatterns);
|
||||
export default createContractsVitestConfig(pluginContractPatterns, process.env, process.argv, {
|
||||
name: "contracts-plugin",
|
||||
});
|
||||
|
||||
@@ -70,6 +70,7 @@ export function createContractsVitestConfig(
|
||||
includePatterns: string[],
|
||||
env: Record<string, string | undefined> = process.env,
|
||||
argv: string[] = process.argv,
|
||||
options: { name?: string } = {},
|
||||
) {
|
||||
const cliIncludePatterns = narrowIncludePatternsForCli(includePatterns, argv);
|
||||
const envIncludePatterns = narrowContractIncludePatterns(
|
||||
@@ -80,6 +81,7 @@ export function createContractsVitestConfig(
|
||||
...base,
|
||||
test: {
|
||||
...baseTest,
|
||||
name: options.name ?? "contracts",
|
||||
isolate: false,
|
||||
// Contract shards intentionally run non-isolated and load broad registries.
|
||||
// Use forks so full-suite parallel runs do not hit worker-thread heap limits.
|
||||
|
||||
Reference in New Issue
Block a user