Skip to content

Commit 50da339

Browse files
committed
fix(ideation): adicionar wrappers .aios-core e corrigir path do mock
- Criado .aios-core/core/ideation/ideation-engine.js (wrapper retrocompatível) - Criado .aios-core/core/memory/gotchas-memory.js (wrapper retrocompatível) - Corrigido path do jest.doMock no teste de GotchasMemory import failure (apontava para .aios-core mas o engine importa de .aiox-core)
1 parent fbd4901 commit 50da339

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Backward compatibility wrapper
2+
module.exports = require('../../../.aiox-core/core/ideation/ideation-engine');
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Backward compatibility wrapper
2+
module.exports = require('../../../.aiox-core/core/memory/gotchas-memory');

tests/core/ideation/ideation-engine-gotchas.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('IdeationEngine — GotchasMemory import regression (#517)', () => {
4949

5050
test('sets gotchasMemory to null when module fails to load', () => {
5151
// Mock the gotchas-memory module to throw on require
52-
jest.doMock('../../../.aios-core/core/memory/gotchas-memory', () => {
52+
jest.doMock('../../../.aiox-core/core/memory/gotchas-memory', () => {
5353
throw new Error('Module not found');
5454
});
5555

0 commit comments

Comments
 (0)