fix tests

This commit is contained in:
dswbx
2025-03-11 17:45:27 +01:00
parent 96781f5d3d
commit a72b11e9fb
2 changed files with 2 additions and 14 deletions

View File

@@ -78,17 +78,4 @@ describe("Migrations", () => {
// @ts-expect-error // @ts-expect-error
expect(app.toJSON(true).server.admin).toBeUndefined(); expect(app.toJSON(true).server.admin).toBeUndefined();
}); });
test.only("migration from 8 to 9 (from initial)", async () => {
expect(v8_2.version).toBe(8);
const app = createApp({
connection: getDummyConnection().dummyConnection,
initialConfig: v8_2 as any,
});
expect(app.version()).toBeGreaterThan(8);
// @ts-expect-error
expect(app.toJSON(true).server.admin).toBeUndefined();
});
}); });

View File

@@ -220,7 +220,8 @@ export class ModuleManager {
private repo() { private repo() {
return this.__em.repo(__bknd, { return this.__em.repo(__bknd, {
silent: !debug_modules, // to prevent exceptions when table doesn't exist
silent: true,
}); });
} }