Skip to content

Commit 8ef6ea5

Browse files
os-zhuangclaude
andcommitted
fix(core): named spec import in the action-keys pin test — a namespace import of spec/ui now trips the #3090 misimport tripwire
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f5f91fa commit 8ef6ea5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/core/src/actions/__tests__/actionKeys.pin.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { readFileSync } from 'node:fs';
1919
import { fileURLToPath } from 'node:url';
2020
import { dirname, join } from 'node:path';
2121
import ts from 'typescript';
22-
import * as SpecUI from '@objectstack/spec/ui';
22+
import { ActionSchema as SpecActionSchema } from '@objectstack/spec/ui';
2323
import {
2424
ACTION_DEF_KEYS,
2525
SPEC_ACTION_KEYS,
@@ -69,7 +69,7 @@ function specActionKeys(): string[] {
6969
}
7070
return null;
7171
};
72-
const keys = walk(SpecUI.ActionSchema);
72+
const keys = walk(SpecActionSchema);
7373
if (!keys) throw new Error('could not resolve @objectstack/spec/ui ActionSchema shape');
7474
return keys;
7575
}
@@ -99,7 +99,7 @@ describe('action key inventory (objectstack#4075 step 1)', () => {
9999
});
100100

101101
it('`execute` is still a live spec tombstone, so it must not count as known', () => {
102-
const parsed = SpecUI.ActionSchema.safeParse({
102+
const parsed = SpecActionSchema.safeParse({
103103
name: 'mark_done',
104104
label: 'Mark Done',
105105
type: 'script',

0 commit comments

Comments
 (0)