mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:20:44 +00:00
chore: move test tsconfigs
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user