mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
refactor(plugins): decouple bundled plugin runtime loading
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { defineConfig } from "vitest/config";
|
||||
import {
|
||||
BUNDLED_PLUGIN_ROOT_DIR,
|
||||
BUNDLED_PLUGIN_TEST_GLOB,
|
||||
} from "./scripts/lib/bundled-plugin-paths.mjs";
|
||||
import { pluginSdkSubpaths } from "./scripts/lib/plugin-sdk-entries.mjs";
|
||||
import { resolveLocalVitestMaxWorkers } from "./scripts/test-planner/runtime-profile.mjs";
|
||||
import {
|
||||
@@ -73,7 +77,7 @@ export default defineConfig({
|
||||
],
|
||||
include: [
|
||||
"src/**/*.test.ts",
|
||||
"extensions/**/*.test.ts",
|
||||
BUNDLED_PLUGIN_TEST_GLOB,
|
||||
"packages/**/*.test.ts",
|
||||
"test/**/*.test.ts",
|
||||
"ui/src/ui/app-chat.test.ts",
|
||||
@@ -119,7 +123,7 @@ export default defineConfig({
|
||||
include: ["./src/**/*.ts"],
|
||||
exclude: [
|
||||
// Never count workspace packages/apps toward core coverage thresholds.
|
||||
"extensions/**",
|
||||
`${BUNDLED_PLUGIN_ROOT_DIR}/**`,
|
||||
"apps/**",
|
||||
"ui/**",
|
||||
"test/**",
|
||||
|
||||
Reference in New Issue
Block a user