general code improvements
This commit is contained in:
@@ -6,8 +6,12 @@ import { cleanDataSource } from "../../utils/cleanDataSource";
|
||||
describe("Project", () => {
|
||||
beforeAll(async () => {
|
||||
await AppDataSource.initialize();
|
||||
await cleanDataSource(AppDataSource, ["project", "user"]);
|
||||
await cleanDataSource(AppDataSource);
|
||||
});
|
||||
afterAll(async () => {
|
||||
await cleanDataSource(AppDataSource);
|
||||
await AppDataSource.destroy()
|
||||
})
|
||||
|
||||
describe("relations", () => {
|
||||
it("should have many projects", async () => {
|
||||
|
||||
Reference in New Issue
Block a user