mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix tests
This commit is contained in:
@@ -78,17 +78,4 @@ describe("Migrations", () => {
|
||||
// @ts-expect-error
|
||||
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();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -220,7 +220,8 @@ export class ModuleManager {
|
||||
|
||||
private repo() {
|
||||
return this.__em.repo(__bknd, {
|
||||
silent: !debug_modules,
|
||||
// to prevent exceptions when table doesn't exist
|
||||
silent: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user