Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Express
- flask
- Nest.js
- nestjs
- Python
- OCR
- 자료구조
- 공룡게임
- Sequelize
- cookie
- JavaScript
- MySQL
- Queue
- Bull
- react
- jest
- AWS
- game
- mongoose
- dfs
- 게임
- nodejs
- class
- 정렬
- MongoDB
- typeORM
- GIT
- Dinosaur
- TypeScript
Archives
- Today
- Total
목록supertest (1)
포시코딩
1월29일 - Test Code 작성하면서 궁금한거 정리
개요 테스트 코드를 작성하면서 의문이 들었던 부분이나 헤맸던 부분을 정리해봄 return이 avoid type인 메소드 users.repo createUser = async (userInfo) => { await this.usersModel.create({ email: userInfo.email, password: userInfo.password, // ...생략 }); }; unit test code test('users.repository createUser Method success', async () => { mockUsersModel.create = jest.fn(() => { return 'test'; }); const userInfo = { email: 'test@gmail.com', pas..
TIL
2023. 1. 29. 18:53