mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
28 lines
797 B
TypeScript
28 lines
797 B
TypeScript
import { afterAll, afterEach, describe, expect, test } from "bun:test";
|
|
import { App } from "../src";
|
|
import { getDummyConnection } from "./helper";
|
|
|
|
const { dummyConnection, afterAllCleanup } = getDummyConnection();
|
|
afterEach(afterAllCleanup);
|
|
|
|
describe("App tests", async () => {
|
|
test("boots and pongs", async () => {
|
|
const app = new App(dummyConnection);
|
|
await app.build();
|
|
|
|
//expect(await app.data?.em.ping()).toBeTrue();
|
|
});
|
|
|
|
/*test.only("what", async () => {
|
|
const app = new App(dummyConnection, {
|
|
auth: {
|
|
enabled: true,
|
|
},
|
|
});
|
|
await app.module.auth.build();
|
|
await app.module.data.build();
|
|
console.log(app.em.entities.map((e) => e.name));
|
|
console.log(await app.em.schema().getDiff());
|
|
});*/
|
|
});
|