crud test controller and class validator mocker generate classes
This commit is contained in:
parent
6c85616c99
commit
9617d313a1
24 changed files with 242 additions and 108 deletions
|
@ -2,9 +2,12 @@ import mongoose from "mongoose";
|
|||
import { delay } from "../../src/core/helpers/delay";
|
||||
import { Result } from "../../src/core/helpers/result";
|
||||
import { TypedEvent } from "../../src/core/helpers/typed_event";
|
||||
import { DropDataBaseUseCase } from "../../src/core/usecases/drop_database_usecase";
|
||||
import { ExitAppUseCase } from "../../src/core/usecases/exit_app_usecase";
|
||||
|
||||
export const before = async () => {
|
||||
await mongoose.connection.dropDatabase();
|
||||
new DropDataBaseUseCase().call();
|
||||
new ExitAppUseCase().call();
|
||||
};
|
||||
|
||||
export class TestCore {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue