python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Can't create mock constructor for user model
When I'm trying to mock my user model to test my service, the nest console throws this TypeError, but I don't know how 'emulate' the constructor of user model
user.service.spec.ts
import { Test, Testi...
itsDev018
Votes: 0
Answers: 1
Is it possible to have multiple local strategies in passport implemented with NestJS
I have a scenario where I need to implement an authentication mechanism for admin and for normal users in my application using the Passport local strategy. I implemented the strategy for the normal us...
John
Votes: 0
Answers: 1
Why I get no overload matches with typeorm and nest.js
Hey I'm trying to create an entity for task and use this entity,
so here is my task entity:
import {
Column,
CreateDateColumn,
Entity,
JoinColumn,
OneToOne,
PrimaryGeneratedColumn,
Updat...
kyrolos magdy
Votes: 0
Answers: 1
CreateDateColumn/UpdateDateColumn save an incorrect date
I have a problem at the moment to create or updating a register. The issue is, that the time saved in the columns CreateDateColumn/UpdateDateColumn, saves a different hour compare with the time on my ...
Pedro Miguel Pimienta Morales
Votes: 0
Answers: 1