mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-21 22:21:33 +00:00
test: exclude topology fixtures from vitest collection
This commit is contained in:
@@ -31,8 +31,8 @@ describe("ts-topology", () => {
|
||||
declarationPath: "src/lib/shared.ts",
|
||||
declarationLine: 1,
|
||||
productionExtensions: ["alpha", "beta"],
|
||||
productionPackages: ["package:core", "src"],
|
||||
productionOwners: ["extension:alpha", "extension:beta", "package:core", "src"],
|
||||
productionPackages: ["src"],
|
||||
productionOwners: ["extension:alpha", "extension:beta", "src"],
|
||||
});
|
||||
expect(sharedThing?.publicSpecifiers).toEqual(["fixture-sdk", "fixture-sdk/extra"]);
|
||||
});
|
||||
@@ -146,7 +146,7 @@ describe("ts-topology", () => {
|
||||
Records with consumers: 5
|
||||
|
||||
Top 2 consumer-topology records:
|
||||
- fixture-sdk:sharedThing prod=4 test=0 internal=0
|
||||
- fixture-sdk:sharedThing prod=3 test=0 internal=0
|
||||
- fixture-sdk:SharedType prod=2 test=0 internal=0
|
||||
"
|
||||
`);
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
resolveExecutionBudget,
|
||||
resolveRuntimeCapabilities,
|
||||
} from "../scripts/test-planner/runtime-profile.mjs";
|
||||
import { resolveLocalVitestMaxWorkers } from "../vitest.config.ts";
|
||||
import baseConfig, { resolveLocalVitestMaxWorkers } from "../vitest.config.ts";
|
||||
|
||||
function resolveHighMemoryLocalRuntime() {
|
||||
return resolveRuntimeCapabilities(
|
||||
@@ -191,3 +191,9 @@ describe("resolveLocalVitestMaxWorkers", () => {
|
||||
expect(budget.extensionWorkers).toBe(5);
|
||||
});
|
||||
});
|
||||
|
||||
describe("base vitest config", () => {
|
||||
it("excludes fixture trees from test collection", () => {
|
||||
expect(baseConfig.test?.exclude).toContain("test/fixtures/**");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -92,6 +92,7 @@ export default defineConfig({
|
||||
setupFiles: ["test/setup.ts"],
|
||||
exclude: [
|
||||
"dist/**",
|
||||
"test/fixtures/**",
|
||||
"apps/macos/**",
|
||||
"apps/macos/.build/**",
|
||||
"**/node_modules/**",
|
||||
|
||||
Reference in New Issue
Block a user