mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-22 10:28:13 +00:00
fix(test): route e2e helper family tests
This commit is contained in:
@@ -1795,6 +1795,16 @@ function resolveConventionalToolingTestTargets(changedPath, cwd = process.cwd())
|
||||
const dashedStem = stem.replaceAll("/", "-");
|
||||
const e2eLibStem = stem.startsWith("e2e/lib/") ? stem.slice("e2e/lib/".length) : null;
|
||||
const e2eLibDashedStem = e2eLibStem?.replaceAll("/", "-");
|
||||
const e2eLibParts = e2eLibStem?.split("/") ?? [];
|
||||
const e2eLibFamily = e2eLibParts.length > 1 ? e2eLibParts[0] : null;
|
||||
const e2eLibFamilyCandidates = e2eLibFamily
|
||||
? [
|
||||
`test/scripts/${e2eLibFamily}.test.ts`,
|
||||
`test/scripts/${e2eLibFamily}-client.test.ts`,
|
||||
`test/scripts/${e2eLibFamily}-assertions.test.ts`,
|
||||
`test/scripts/${e2eLibFamily}-probe.test.ts`,
|
||||
]
|
||||
: [];
|
||||
const candidates = [
|
||||
`test/scripts/${stem}.test.ts`,
|
||||
`test/scripts/${dashedStem}.test.ts`,
|
||||
@@ -1802,6 +1812,7 @@ function resolveConventionalToolingTestTargets(changedPath, cwd = process.cwd())
|
||||
...(e2eLibDashedStem
|
||||
? [`test/scripts/${e2eLibDashedStem}.test.ts`, `test/scripts/e2e-${e2eLibDashedStem}.test.ts`]
|
||||
: []),
|
||||
...e2eLibFamilyCandidates,
|
||||
`src/scripts/${stem}.test.ts`,
|
||||
`src/scripts/${dashedStem}.test.ts`,
|
||||
`src/scripts/${basename}.test.ts`,
|
||||
|
||||
@@ -312,6 +312,46 @@ describe("scripts/test-projects changed-target routing", () => {
|
||||
"scripts/e2e/lib/bundled-plugin-install-uninstall/probe.mjs",
|
||||
["test/scripts/bundled-plugin-install-uninstall-probe.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/browser-cdp-snapshot/assert-snapshot.mjs",
|
||||
["test/scripts/browser-cdp-snapshot.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/browser-cdp-snapshot/fixture-server.mjs",
|
||||
["test/scripts/browser-cdp-snapshot.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/codex-media-path/fake-codex-app-server.mjs",
|
||||
["test/scripts/codex-media-path-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/codex-media-path/scenario.sh",
|
||||
["test/scripts/codex-media-path-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/codex-media-path/jsonl-request-tail.mjs",
|
||||
["test/scripts/codex-media-path-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/codex-media-path/limits.mjs",
|
||||
["test/scripts/codex-media-path-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/codex-media-path/write-config.mjs",
|
||||
["test/scripts/codex-media-path-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/gateway-network/limits.mjs",
|
||||
["test/scripts/gateway-network-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/gateway-network/ws-frames.mjs",
|
||||
["test/scripts/gateway-network-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/npm-telegram-live/prepare-package.mjs",
|
||||
["test/scripts/npm-telegram-live.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/kitchen-sink-plugin/assertions.mjs",
|
||||
["test/scripts/kitchen-sink-plugin-assertions.test.ts"],
|
||||
@@ -320,14 +360,43 @@ describe("scripts/test-projects changed-target routing", () => {
|
||||
"scripts/e2e/lib/live-plugin-tool/assertions.mjs",
|
||||
["test/scripts/live-plugin-tool-assertions.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/plugins/assertions.mjs",
|
||||
["test/scripts/plugins-assertions.test.ts"],
|
||||
],
|
||||
["scripts/e2e/lib/plugins/assertions.mjs", ["test/scripts/plugins-assertions.test.ts"]],
|
||||
[
|
||||
"scripts/e2e/lib/release-user-journey/assertions.mjs",
|
||||
["test/scripts/release-user-journey-assertions.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/openai-chat-tools/write-config.mjs",
|
||||
["test/scripts/openai-chat-tools-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/openai-chat-tools/scenario.sh",
|
||||
["test/scripts/openai-chat-tools-client.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/openai-web-search-minimal/mock-server.mjs",
|
||||
[
|
||||
"test/scripts/openai-web-search-minimal-client.test.ts",
|
||||
"test/scripts/openai-web-search-minimal-assertions.test.ts",
|
||||
],
|
||||
],
|
||||
["scripts/e2e/lib/openwebui/http-probe.mjs", ["test/scripts/openwebui-probe.test.ts"]],
|
||||
[
|
||||
"scripts/e2e/lib/plugins/npm-registry-server.mjs",
|
||||
["test/scripts/plugins-assertions.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/release-scenarios/write-cli-plugin.mjs",
|
||||
["test/scripts/release-scenarios-assertions.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/release-user-journey/clickclack-fixture.mjs",
|
||||
["test/scripts/release-user-journey-assertions.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/e2e/lib/upgrade-survivor/run.sh",
|
||||
["test/scripts/upgrade-survivor-assertions.test.ts"],
|
||||
],
|
||||
["scripts/e2e/lib/run-with-pty.mjs", ["test/scripts/e2e-run-with-pty.test.ts"]],
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user