Testing entire flows
It's time to finally implement our more realistic, e2e tests.
afterAll(async () => {
await app.close();
});const createUserDto: CreateUserDto = {
name: faker.person.firstName(),
email: faker.internet.email(),
phone: '85988888888',
password: 'AAaa11!!',
};
const updateUserDto: UpdateUserDto = {
name: faker.person.firstName(),
};
const expectedUser = {
id: 1,
...createUserDto,
role: Role.USER,
} as User;Last updated