refactor: migrate some e2e to medium ()

This commit is contained in:
Jason Rasmussen 2025-04-16 14:59:08 -04:00 committed by GitHub
commit 8cefa0b84b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 547 additions and 115 deletions
server/test

View file

@ -93,13 +93,17 @@ export const automock = <T>(
continue;
}
const label = `${Dependency.name}.${property}`;
// console.log(`Automocking ${label}`);
try {
const label = `${Dependency.name}.${property}`;
// console.log(`Automocking ${label}`);
const target = instance[property as keyof T];
if (typeof target === 'function') {
mock[property] = mockFn(label, { strict });
continue;
const target = instance[property as keyof T];
if (typeof target === 'function') {
mock[property] = mockFn(label, { strict });
continue;
}
} catch {
// noop
}
}