From a011b8f033957ccd09a700f2a3dd787a0ce1de6b Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Thu, 21 May 2026 08:54:44 +0800 Subject: [PATCH] chore(sdk): point actions-sync test at @snowluma/onebot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Path follow-up to the 4-package split — the action registrations moved from `packages/core/src/onebot/actions/` to `packages/onebot/src/actions/` in Phase 3. The test was failing with ENOENT on the old path before reaching the actual assertion. Note that this test has a separate pre-existing failure (it imports a non-exported `SNOWLUMA_ACTIONS` symbol from the SDK); the path fix just clears the first of the two errors. --- packages/sdk/tests/actions-sync.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/sdk/tests/actions-sync.test.ts b/packages/sdk/tests/actions-sync.test.ts index 5b31386e..41c79daf 100644 --- a/packages/sdk/tests/actions-sync.test.ts +++ b/packages/sdk/tests/actions-sync.test.ts @@ -5,7 +5,9 @@ import { SNOWLUMA_ACTIONS } from '../src'; describe('SnowLuma action list', () => { it('stays in sync with core registerAction calls', () => { - const actionsDir = fileURLToPath(new URL('../../core/src/onebot/actions/', import.meta.url)); + // Actions moved out of @snowluma/core into the dedicated + // @snowluma/onebot package in the RoadMap #3 4-way split. + const actionsDir = fileURLToPath(new URL('../../onebot/src/actions/', import.meta.url)); const registered = new Set(); for (const file of fs.readdirSync(actionsDir)) {