#Nestjs Test: TypeError: Converting circular structure to JSON

4 messages · Page 1 of 1 (latest)

alpine harbor
#

Hello guys. Whenever I run Yarn test, I get the below error message from the test files. This happens only when I try running tests.

    TypeError: Converting circular structure to JSON
        --> starting at object with constructor 'NestContainer'
        |     property 'modules' -> object with constructor 'ModulesContainer'
        |     property 'InternalCoreModule' -> object with constructor 'Module'
        --- property 'container' closes the circle
        at stringify (<anonymous>)
zinc thistle
#

can you spot which test assertion or such is triggering this error?

#

or just show us the whole test suite

alpine harbor