test: route script suites through contracts surface

This commit is contained in:
Shakker 2026-04-02 00:35:31 +01:00 committed by Peter Steinberger
parent 335b472c37
commit 75b66403be
2 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,11 @@ import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
export function createContractsVitestConfig(env?: Record<string, string | undefined>) {
return createScopedVitestConfig(
["src/channels/plugins/contracts/**/*.test.ts", "src/plugins/contracts/**/*.test.ts"],
[
"src/channels/plugins/contracts/**/*.test.ts",
"src/plugins/contracts/**/*.test.ts",
"test/scripts/**/*.test.ts",
],
{
env,
passWithNoTests: true,

View File

@ -41,6 +41,7 @@ export const unitTestAdditionalExcludePatterns = [
"src/plugins/contracts/**",
...boundaryTestFiles,
...bundledPluginDependentUnitTestFiles,
"test/scripts/**",
];
const sharedBaseExcludePatterns = [