mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
fix(test): avoid runtime rebuilds after test utility edits (#163571)
Exclude dotted .test-utils.ts and .test-utils.tsx paths through the existing build-input owner. Preserve runtime support inputs and extend the existing build-stamp regression.
The controlled prepared test-utility-edit workflow at db793644 improved from 67.205s to 27.870s mean wall time. Current-source correctness and changed-file gates remain pending in the draft PR.
This commit is contained in:
parent
b5a41c2001
commit
dd5ff2c382
2 changed files with 35 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ export const normalizeRunNodePath = (filePath: unknown): string =>
|
|||
export const isIgnoredRunNodeSourcePath = (relativePath: string): boolean =>
|
||||
relativePath.endsWith(".test.ts") ||
|
||||
relativePath.endsWith(".test.tsx") ||
|
||||
relativePath.endsWith(".test-utils.ts") ||
|
||||
relativePath.endsWith(".test-utils.tsx") ||
|
||||
relativePath.endsWith("test-helpers.ts");
|
||||
|
||||
const isBuildRelevantSourcePath = (relativePath: string): boolean =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue