Skip to content

Commit bd959d5

Browse files
committed
fix(ui-scripts): the cwd-subject register follows app-generator.test.ts's ambient read to its new line (objectstack#25711)
The changesetConfigPath() import and comment moved the registered `existsSync(join(process.cwd(), 'pnpm-workspace.yaml'))` read from line 1326 to 1329, so check:test-path-roots saw it as unregistered and the entry as stale. Same entry, same reason, new line. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0149BHSXfCdQywGaLdpRAtWe
1 parent 399fe2a commit bd959d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/scripts/check-test-path-roots.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const FS_MODULES = new Set(['fs', 'node:fs', 'fs/promises', 'node:fs/promises',
187187
* what it excuses.
188188
*/
189189
export const SUBJECT_IS_THE_CWD = Object.freeze([
190-
'packages/cli/src/__tests__/app-generator.test.ts:1326 -- `contextOfCurrentProcess()` mirrors the ambient cwd on BOTH sides of the assertion deliberately: the writer under test derives its context from `process.cwd()` and the expectation derives it the same way, so the pair is self-consistent under either cwd. Re-rooting one side desyncs the mirror and turns a passing test red. The real cost -- that WHICH generator branch those two cases pin is decided by the launch directory -- is filed as objectui#7807 and is closed in the same file by two further cases that name their branch instead of inheriting it.',
190+
'packages/cli/src/__tests__/app-generator.test.ts:1329 -- `contextOfCurrentProcess()` mirrors the ambient cwd on BOTH sides of the assertion deliberately: the writer under test derives its context from `process.cwd()` and the expectation derives it the same way, so the pair is self-consistent under either cwd. Re-rooting one side desyncs the mirror and turns a passing test red. The real cost -- that WHICH generator branch those two cases pin is decided by the launch directory -- is filed as objectui#7807 and is closed in the same file by two further cases that name their branch instead of inheriting it.',
191191
]);
192192

193193
/**

0 commit comments

Comments
 (0)