Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

252
Visualizações
How to write unit test for a userModel.ts using jest, as I am totally new to this I am not able to figure out where to start?

I have user model file that I have wrote using typescript, which includes different functions like login, registration, find user etc. It also includes userSchema.

Now I need to start unit test script for the same but I am not able to figure out where or how can I start writing.

Is it possible to write unit test script for userSchema ?

enter image description here

I have tried writing test scripts for login and registration functionality but facing issue while comparing hashed password.

Is it possible to write unit test script for userSchema ?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda