mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-06 07:21:40 +09:00
Merge pull request #4943 from Tong-bit-art/fix/doctor-driver-module-reset
test(doctor): reset modules before applying the driver mock
This commit is contained in:
1 file changed
+4
@@ -13,6 +13,10 @@ let workdir: string;
|
||||
let dbPath: string;
|
||||
|
||||
async function runDoctor() {
|
||||
// Full-suite isolation (#4643): this worker may already have imported
|
||||
// doctor.ts before the current test registered its vi.doMock. Re-import a
|
||||
// fresh module so the mock applies to its Memory Integrity check.
|
||||
vi.resetModules();
|
||||
const { doctorCommand } = await import('../src/commands/doctor.js');
|
||||
const result = await doctorCommand.action!({
|
||||
flags: { component: 'memory' }, args: [], config: {},
|
||||
|
||||
Reference in new issue
Block a user