mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 04:40:43 +00:00
chore: move test tsconfigs
This commit is contained in:
10
package.json
10
package.json
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
|
||||
10
test/tsconfig/tsconfig.core.test.agents.json
Normal file
10
test/tsconfig/tsconfig.core.test.agents.json
Normal 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"
|
||||
]
|
||||
}
|
||||
18
test/tsconfig/tsconfig.core.test.json
Normal file
18
test/tsconfig/tsconfig.core.test.json
Normal 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"
|
||||
]
|
||||
}
|
||||
10
test/tsconfig/tsconfig.core.test.non-agents.json
Normal file
10
test/tsconfig/tsconfig.core.test.non-agents.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "./tsconfig.core.test.json",
|
||||
"exclude": [
|
||||
"../../node_modules",
|
||||
"../../dist",
|
||||
"../../**/dist/**",
|
||||
"../../src/agents/**/*.test.ts",
|
||||
"../../src/agents/**/*.test.tsx"
|
||||
]
|
||||
}
|
||||
14
test/tsconfig/tsconfig.extensions.test.json
Normal file
14
test/tsconfig/tsconfig.extensions.test.json
Normal 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"
|
||||
]
|
||||
}
|
||||
18
test/tsconfig/tsconfig.test.json
Normal file
18
test/tsconfig/tsconfig.test.json
Normal 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/**"]
|
||||
}
|
||||
11
test/tsconfig/tsconfig.test.packages.json
Normal file
11
test/tsconfig/tsconfig.test.packages.json
Normal 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"
|
||||
]
|
||||
}
|
||||
12
test/tsconfig/tsconfig.test.src.json
Normal file
12
test/tsconfig/tsconfig.test.src.json
Normal 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"
|
||||
]
|
||||
}
|
||||
11
test/tsconfig/tsconfig.test.ui.json
Normal file
11
test/tsconfig/tsconfig.test.ui.json
Normal 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"
|
||||
]
|
||||
}
|
||||
@@ -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" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.core.test.json",
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist",
|
||||
"**/dist/**",
|
||||
"src/agents/**/*.test.ts",
|
||||
"src/agents/**/*.test.tsx"
|
||||
]
|
||||
}
|
||||
@@ -2,6 +2,6 @@
|
||||
"files": [],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.extensions.json" },
|
||||
{ "path": "./tsconfig.extensions.test.json" }
|
||||
{ "path": "./test/tsconfig/tsconfig.extensions.test.json" }
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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/**"]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user