chore: move test tsconfigs

This commit is contained in:
Peter Steinberger
2026-05-03 12:56:42 +01:00
parent f7522edb96
commit adc4fd453b
22 changed files with 126 additions and 123 deletions

View File

@@ -1640,17 +1640,17 @@
"tsgo:all": "node scripts/run-tsgo.mjs -b tsconfig.projects.json",
"tsgo:core": "node scripts/run-tsgo.mjs -p tsconfig.core.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/core.tsbuildinfo",
"tsgo:core:all": "node scripts/run-tsgo.mjs -b tsconfig.core.projects.json",
"tsgo:core:test": "node scripts/run-tsgo.mjs -p tsconfig.core.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/core-test.tsbuildinfo",
"tsgo:core:test": "node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/core-test.tsbuildinfo",
"tsgo:extensions": "node scripts/run-tsgo.mjs -p tsconfig.extensions.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/extensions.tsbuildinfo",
"tsgo:extensions:all": "node scripts/run-tsgo.mjs -b tsconfig.extensions.projects.json",
"tsgo:extensions:test": "node scripts/run-tsgo.mjs -p tsconfig.extensions.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/extensions-test.tsbuildinfo",
"tsgo:extensions:test": "node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.extensions.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/extensions-test.tsbuildinfo",
"tsgo:prod": "pnpm tsgo:core && pnpm tsgo:extensions",
"tsgo:profile": "node scripts/profile-tsgo.mjs",
"tsgo:test": "pnpm tsgo:core:test && pnpm tsgo:extensions:test",
"tsgo:test:extensions": "pnpm tsgo:extensions:test",
"tsgo:test:packages": "node scripts/run-tsgo.mjs -p tsconfig.test.packages.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-packages.tsbuildinfo",
"tsgo:test:src": "node scripts/run-tsgo.mjs -p tsconfig.test.src.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-src.tsbuildinfo",
"tsgo:test:ui": "node scripts/run-tsgo.mjs -p tsconfig.test.ui.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-ui.tsbuildinfo",
"tsgo:test:packages": "node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.packages.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-packages.tsbuildinfo",
"tsgo:test:src": "node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.src.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-src.tsbuildinfo",
"tsgo:test:ui": "node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.ui.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/test-ui.tsbuildinfo",
"tui": "node scripts/run-node.mjs tui",
"tui:dev": "OPENCLAW_PROFILE=dev node scripts/run-node.mjs --dev tui",
"ui:build": "node scripts/ui.js build",

View File

@@ -8,9 +8,9 @@ const tsgoPath = path.join(repoRoot, "node_modules", ".bin", "tsgo");
const coreGraphs = [
{ name: "core", config: "tsconfig.core.json" },
{ name: "core-test", config: "tsconfig.core.test.json" },
{ name: "core-test-agents", config: "tsconfig.core.test.agents.json" },
{ name: "core-test-non-agents", config: "tsconfig.core.test.non-agents.json" },
{ name: "core-test", config: "test/tsconfig/tsconfig.core.test.json" },
{ name: "core-test-agents", config: "test/tsconfig/tsconfig.core.test.agents.json" },
{ name: "core-test-non-agents", config: "test/tsconfig/tsconfig.core.test.non-agents.json" },
];
function normalizeFilePath(filePath) {

View File

@@ -19,15 +19,15 @@ const GRAPH_DEFINITIONS = {
description: "core production graph",
},
"core-test": {
config: "tsconfig.core.test.json",
config: "test/tsconfig/tsconfig.core.test.json",
description: "core colocated test graph",
},
"core-test-agents": {
config: "tsconfig.core.test.agents.json",
config: "test/tsconfig/tsconfig.core.test.agents.json",
description: "diagnostic slice: core agent colocated tests",
},
"core-test-non-agents": {
config: "tsconfig.core.test.non-agents.json",
config: "test/tsconfig/tsconfig.core.test.non-agents.json",
description: "diagnostic slice: core tests excluding agent test roots",
},
extensions: {
@@ -35,7 +35,7 @@ const GRAPH_DEFINITIONS = {
description: "bundled extension production graph",
},
"extensions-test": {
config: "tsconfig.extensions.test.json",
config: "test/tsconfig/tsconfig.extensions.test.json",
description: "bundled extension colocated test graph",
},
};

View File

@@ -26,7 +26,7 @@ describe("run-tsgo sparse guard", () => {
const cwd = createTempDir("openclaw-run-tsgo-");
expect(
getSparseTsgoGuardError(["-p", "tsconfig.core.test.json"], {
getSparseTsgoGuardError(["-p", "test/tsconfig/tsconfig.core.test.json"], {
cwd,
isSparseCheckoutEnabled: () => false,
}),
@@ -37,7 +37,7 @@ describe("run-tsgo sparse guard", () => {
const cwd = createTempDir("openclaw-run-tsgo-");
expect(
getSparseTsgoGuardError(["-p", "tsconfig.core.test.json", "--showConfig"], {
getSparseTsgoGuardError(["-p", "test/tsconfig/tsconfig.core.test.json", "--showConfig"], {
cwd,
isSparseCheckoutEnabled: () => true,
}),
@@ -62,7 +62,7 @@ describe("run-tsgo sparse guard", () => {
}
expect(
getSparseTsgoGuardError(["-p", "tsconfig.core.test.non-agents.json"], {
getSparseTsgoGuardError(["-p", "test/tsconfig/tsconfig.core.test.non-agents.json"], {
cwd,
isSparseCheckoutEnabled: () => true,
sparseCheckoutPatterns: ["/packages/", "/ui/src/"],
@@ -87,7 +87,7 @@ describe("run-tsgo sparse guard", () => {
}
expect(
getSparseTsgoGuardError(["-p", "tsconfig.core.test.json"], {
getSparseTsgoGuardError(["-p", "test/tsconfig/tsconfig.core.test.json"], {
cwd,
isSparseCheckoutEnabled: () => true,
sparseCheckoutPatterns: [
@@ -128,7 +128,7 @@ describe("run-tsgo sparse guard", () => {
const cwd = createTempDir("openclaw-run-tsgo-");
expect(
getSparseTsgoGuardError(["-p", "tsconfig.core.test.json"], {
getSparseTsgoGuardError(["-p", "test/tsconfig/tsconfig.core.test.json"], {
cwd,
isSparseCheckoutEnabled: () => true,
}),

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.test.json",
"include": [
"../../src/**/*.d.ts",
"../../src/agents/**/*.test.ts",
"../../src/agents/**/*.test.tsx",
"../../ui/**/*.d.ts",
"../../packages/**/*.d.ts"
]
}

View File

@@ -0,0 +1,18 @@
{
"extends": "./tsconfig.test.json",
"compilerOptions": {
"tsBuildInfoFile": "../../.artifacts/tsgo-cache/core-test.tsbuildinfo"
},
"include": [
"../../src/**/*.d.ts",
"../../src/**/*.test.ts",
"../../src/**/*.test.tsx",
"../../ui/**/*.d.ts",
"../../ui/src/ui/app.ts",
"../../ui/**/*.test.ts",
"../../ui/**/*.test.tsx",
"../../packages/**/*.d.ts",
"../../packages/**/*.test.ts",
"../../packages/**/*.test.tsx"
]
}

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.core.test.json",
"exclude": [
"../../node_modules",
"../../dist",
"../../**/dist/**",
"../../src/agents/**/*.test.ts",
"../../src/agents/**/*.test.tsx"
]
}

View File

@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.test.json",
"compilerOptions": {
"tsBuildInfoFile": "../../.artifacts/tsgo-cache/extensions-test.tsbuildinfo"
},
"include": [
"../../src/**/*.d.ts",
"../../ui/**/*.d.ts",
"../../extensions/**/*.d.ts",
"../../extensions/**/*.test.ts",
"../../extensions/**/*.test.tsx",
"../../packages/**/*.d.ts"
]
}

View File

@@ -0,0 +1,18 @@
{
"extends": "../../tsconfig.json",
"include": [
"../../src/**/*.d.ts",
"../../src/**/*.test.ts",
"../../src/**/*.test.tsx",
"../../ui/**/*.d.ts",
"../../ui/**/*.test.ts",
"../../ui/**/*.test.tsx",
"../../extensions/**/*.d.ts",
"../../extensions/**/*.test.ts",
"../../extensions/**/*.test.tsx",
"../../packages/**/*.d.ts",
"../../packages/**/*.test.ts",
"../../packages/**/*.test.tsx"
],
"exclude": ["../../node_modules", "../../dist", "../../**/dist/**"]
}

View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.test.json",
"include": [
"../../src/**/*.d.ts",
"../../ui/**/*.d.ts",
"../../extensions/**/*.d.ts",
"../../packages/**/*.d.ts",
"../../packages/**/*.test.ts",
"../../packages/**/*.test.tsx"
]
}

View File

@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.test.json",
"include": [
"../../src/**/*.d.ts",
"../../src/**/*.test.ts",
"../../src/**/*.test.tsx",
"../../ui/**/*.d.ts",
"../../ui/src/ui/app.ts",
"../../extensions/**/*.d.ts",
"../../packages/**/*.d.ts"
]
}

View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.test.json",
"include": [
"../../src/**/*.d.ts",
"../../ui/**/*.d.ts",
"../../ui/**/*.test.ts",
"../../ui/**/*.test.tsx",
"../../extensions/**/*.d.ts",
"../../packages/**/*.d.ts"
]
}

View File

@@ -1,4 +1,7 @@
{
"files": [],
"references": [{ "path": "./tsconfig.core.json" }, { "path": "./tsconfig.core.test.json" }]
"references": [
{ "path": "./tsconfig.core.json" },
{ "path": "./test/tsconfig/tsconfig.core.test.json" }
]
}

View File

@@ -1,10 +0,0 @@
{
"extends": "./tsconfig.test.json",
"include": [
"src/**/*.d.ts",
"src/agents/**/*.test.ts",
"src/agents/**/*.test.tsx",
"ui/**/*.d.ts",
"packages/**/*.d.ts"
]
}

View File

@@ -1,18 +0,0 @@
{
"extends": "./tsconfig.test.json",
"compilerOptions": {
"tsBuildInfoFile": ".artifacts/tsgo-cache/core-test.tsbuildinfo"
},
"include": [
"src/**/*.d.ts",
"src/**/*.test.ts",
"src/**/*.test.tsx",
"ui/**/*.d.ts",
"ui/src/ui/app.ts",
"ui/**/*.test.ts",
"ui/**/*.test.tsx",
"packages/**/*.d.ts",
"packages/**/*.test.ts",
"packages/**/*.test.tsx"
]
}

View File

@@ -1,10 +0,0 @@
{
"extends": "./tsconfig.core.test.json",
"exclude": [
"node_modules",
"dist",
"**/dist/**",
"src/agents/**/*.test.ts",
"src/agents/**/*.test.tsx"
]
}

View File

@@ -2,6 +2,6 @@
"files": [],
"references": [
{ "path": "./tsconfig.extensions.json" },
{ "path": "./tsconfig.extensions.test.json" }
{ "path": "./test/tsconfig/tsconfig.extensions.test.json" }
]
}

View File

@@ -1,14 +0,0 @@
{
"extends": "./tsconfig.test.json",
"compilerOptions": {
"tsBuildInfoFile": ".artifacts/tsgo-cache/extensions-test.tsbuildinfo"
},
"include": [
"src/**/*.d.ts",
"ui/**/*.d.ts",
"extensions/**/*.d.ts",
"extensions/**/*.test.ts",
"extensions/**/*.test.tsx",
"packages/**/*.d.ts"
]
}

View File

@@ -1,18 +0,0 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*.d.ts",
"src/**/*.test.ts",
"src/**/*.test.tsx",
"ui/**/*.d.ts",
"ui/**/*.test.ts",
"ui/**/*.test.tsx",
"extensions/**/*.d.ts",
"extensions/**/*.test.ts",
"extensions/**/*.test.tsx",
"packages/**/*.d.ts",
"packages/**/*.test.ts",
"packages/**/*.test.tsx"
],
"exclude": ["node_modules", "dist", "**/dist/**"]
}

View File

@@ -1,11 +0,0 @@
{
"extends": "./tsconfig.test.json",
"include": [
"src/**/*.d.ts",
"ui/**/*.d.ts",
"extensions/**/*.d.ts",
"packages/**/*.d.ts",
"packages/**/*.test.ts",
"packages/**/*.test.tsx"
]
}

View File

@@ -1,12 +0,0 @@
{
"extends": "./tsconfig.test.json",
"include": [
"src/**/*.d.ts",
"src/**/*.test.ts",
"src/**/*.test.tsx",
"ui/**/*.d.ts",
"ui/src/ui/app.ts",
"extensions/**/*.d.ts",
"packages/**/*.d.ts"
]
}

View File

@@ -1,11 +0,0 @@
{
"extends": "./tsconfig.test.json",
"include": [
"src/**/*.d.ts",
"ui/**/*.d.ts",
"ui/**/*.test.ts",
"ui/**/*.test.tsx",
"extensions/**/*.d.ts",
"packages/**/*.d.ts"
]
}