Skip to content

Commit 5db0dbf

Browse files
committed
wip(spec): retirement pin skips its own fixture strings
Claude-Session: https://claude.ai/code/session_01T5pRzjp4QpCwioKZ9Gt5tC Co-authored-by: Claude <noreply@anthropic.com>
1 parent 57a896a commit 5db0dbf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/spec/src/kernel/package-upgrade-family-retirement.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ describe('package upgrade model retirement — the public surface', () => {
141141
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
142142
const full = path.join(dir, entry.name);
143143
if (entry.isDirectory()) walk(full);
144-
else if (entry.name.endsWith('.ts')) {
144+
// This pin spells the specifier in its matcher fixtures, never as an import.
145+
else if (entry.name.endsWith('.ts') && full !== fileURLToPath(import.meta.url)) {
145146
const src = fs.readFileSync(full, 'utf-8');
146147
if (/(?:import|export)[^;]*['"][^'"]*\/package-upgrade\.zod(?:\.js)?['"]/.test(src)) {
147148
importers.push(path.relative(SRC_ROOT, full));

0 commit comments

Comments
 (0)