Skip to content

Commit 5d943ca

Browse files
committed
fix(gates): retarget the teardown closure probe the extraction left stale
The probe walked src/daemon/session-teardown.ts, a path the package extraction had already orphaned; it now resolves through packages/daemon/src/sessions/, where the move put the teardown owner. The non-vacuity pins (closure size, materialized-path-registry membership) carry over unchanged. (cherry picked from commit 7937155)
1 parent 563b382 commit 5d943ca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/__tests__/daemon-composition/session-teardown-import-closure.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ import { eagerClosureOf } from '../eager-import-closure.fixtures.ts';
1616
*/
1717

1818
const srcRoot = path.resolve(import.meta.dirname, '../..');
19-
const teardownFile = path.resolve(srcRoot, 'daemon/session-teardown.ts');
19+
const repoRoot = path.resolve(srcRoot, '..');
20+
const daemonRoot = path.resolve(repoRoot, 'packages/daemon/src');
21+
const teardownFile = path.resolve(daemonRoot, 'sessions/session-teardown.ts');
2022
const LAZY_ANDROID_HELPERS = [
2123
/platforms[/\\]android[/\\]perf\.ts$/,
2224
/platforms[/\\]android[/\\]snapshot-helper\.ts$/,
@@ -55,5 +57,5 @@ test('the teardown closure walk is reachable and the dynamic seam exists', () =>
5557
// guard above pass while proving nothing, so pin a real lower bound…
5658
const closure = eagerClosureOf(teardownFile);
5759
expect(closure.length).toBeGreaterThan(20);
58-
expect(closure).toContain(path.resolve(srcRoot, 'daemon/materialized-path-registry.ts'));
60+
expect(closure).toContain(path.resolve(daemonRoot, 'sessions/materialized-path-registry.ts'));
5961
});

0 commit comments

Comments
 (0)