test(codex): normalize node tests on windows

This commit is contained in:
YeonGyu-Kim
2026-05-31 01:52:47 +09:00
parent 4434ee3aa1
commit fd950932a6
3 changed files with 11 additions and 9 deletions
@@ -60,12 +60,13 @@ async function readComponentHookManifests() {
function collectCommandHooks(hooks, source, version) {
const commandHooks = [];
const normalizedSource = source.replaceAll("\\", "/");
for (const [eventName, groups] of Object.entries(hooks.hooks)) {
groups.forEach((group, groupIndex) => {
group.hooks.forEach((handler, handlerIndex) => {
if (handler.type !== "command") return;
commandHooks.push({
id: `${source}:${eventName}:${groupIndex}:${handlerIndex}`,
id: `${normalizedSource}:${eventName}:${groupIndex}:${handlerIndex}`,
version,
statusMessage: handler.statusMessage,
});