Closed ohana54 closed 3 years ago
Might be related to the latest lodash release
Yes, pinning lodash
to 4.17.16
fixes this error for me, which is unfortunate because there is a security warning for versions lower than 4.17.19
.
Good findings 👍 Thanks @jgoz for making a fix for it. I will publish a new package version shortly
When having a describe block with the name "constructor", the above error appears. This is due to how we collect suites: https://github.com/itereshchenkov/jest-teamcity/blob/f1c956b5351b69037e65513a0fec9cff53665751/lib/formatter.js#L110
I'm guessing it's trying to set the object constructor, when
path
includes the word "constructor", instead of adding a new key with the name "constructor".