강의

멘토링

커뮤니티

Inflearn Community Q&A

robertlee123791310's profile image
robertlee123791310

asked

TDD Development by Following [Updated in November 2023]

Writing integration tests for getProducts

error

Written on

·

263

0

안녕하세요 :)

이 error가 나는 경우는 어떻게 하면 되나요? 

A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks.
supertestexpressnodejsmongodbtddjestmongoose

Answer 2

0

Robert Lee님의 프로필 이미지
Robert Lee
Questioner

오~ 해봐야겠네요. 감사합니다! 

0

John Ahn님의 프로필 이미지
John Ahn
Instructor

안녕하세요 ~~ !!! 

혹시   package.json 에서 

스크립트 부분에 

"test": "jest --runInBand --detectOpenHandles"

이렇게 해줘보시겠나요 ~ ?

robertlee123791310's profile image
robertlee123791310

asked

Ask a question