News for hackers. Stuff that matters.
Re:Tell HN: Nobody at Facebook has worked on Jest for years by tmvnty on Tuesday February 01, 2022 @02:56PM (#30168292)
Re:Tell HN: Nobody at Facebook has worked on Jest for years by DylanSp on Tuesday February 01, 2022 @06:22PM (#30171148)
This is really frustrating, if not surprising. Jest generally just works out of the box for me with Typescript (and ts-jest), including coverage, whereas the Mocha ecosystem tends to involve wrangling multiple packages with varying levels of Typescript compatibility. Jest has generally been slower to run, though, and I've noticed various problems over the years that aren't getting solved due to the lack of maintenance.
Re:Tell HN: Nobody at Facebook has worked on Jest for years by parthokr on Wednesday February 02, 2022 @02:11PM (#30182422)
"Which unit-testing frameworks / tools do you regularly use?" 42% don't seem to write test for javascript.

Source: https://www.jetbrains.com/lp/devecosystem-2021/javascript/

I think this is okay with javascript.

Re:Tell HN: Nobody at Facebook has worked on Jest for years by danappelxx on Wednesday February 02, 2022 @02:36PM (#30182820)
I think this is especially not okay with JavaScript, due to its numerous quirks and type finagling. Typescript, though, perhaps can get away without unit tests for simple stuff.
Re:Tell HN: Nobody at Facebook has worked on Jest for years by systemnate on Wednesday February 02, 2022 @02:29PM (#30182720)
I don't think this is OK with any language.
Re:Tell HN: Nobody at Facebook has worked on Jest for years by matt7340 on Tuesday February 01, 2022 @07:40PM (#30171961)
I’ve been considering switching from karma to jest for our angular project, this certainly brings a new angle to that decision.

Frustrating. I guess I get crappy karma “supported” by google, or the much better jest that’s maintained by one person with almost no backing.

Re:Tell HN: Nobody at Facebook has worked on Jest for years by skywal_l on Wednesday February 02, 2022 @01:40AM (#30174540)
But are jest and karma equivalent tools? My understanding is that karma is used to run tests in an headless browser while jest run tests in node.
Re:Tell HN: Nobody at Facebook has worked on Jest for years by 8n4vidtmkvmk on Wednesday February 02, 2022 @01:42AM (#30174544)
one person that's burned out and doesn't want to work on it anymore
Re:Tell HN: Nobody at Facebook has worked on Jest for years by idontwantthis on Tuesday February 01, 2022 @07:19PM (#30171774)
SimenB reply:

https://github.com/facebook/jest/pull/11529#issuecomment-102...

tl;dr FB has offered him compensation and he turned it down for personal reasons.

Re:Tell HN: Nobody at Facebook has worked on Jest for years by jsmith99 on Wednesday February 02, 2022 @03:56AM (#30175297)
The ESM and other open issues they refer to are serious. Jest often doesn't work at all if you use packages with multiple entry points (like firebase), which is often seen as best practice - it's gotten to the point that people release third party loader packages to make jest work, like https://github.com/k-g-a/jest-node-exports-resolver
Re:Tell HN: Nobody at Facebook has worked on Jest for years by vjeux on Wednesday February 02, 2022 @02:58PM (#30183137)
In practice the ESM support in Jest is blocked by a v8 dependency and not jest itself at this point. If you are able to nudge this issue that would be fantastic! https://github.com/nodejs/node/issues/37648
Re:Tell HN: Nobody at Facebook has worked on Jest for years by austhrow743 on Wednesday February 02, 2022 @02:06AM (#30174669)
I don’t think the post you linked to says that. Unless the open collective is a Facebook thing?
Re:Tell HN: Nobody at Facebook has worked on Jest for years by zaphirplane on Wednesday February 02, 2022 @03:16AM (#30175061)
Not compensation, reimbursement for expenses
Re:Tell HN: Nobody at Facebook has worked on Jest for years by tootie on Wednesday February 02, 2022 @05:34PM (#30185070)
I've used this for years and never even knew it came out of Facebook