Tell HN: Nobody at Facebook has worked on Jest for years

84 points by tmvnty 3 years ago | 14 comments
  • tmvnty 3 years ago
    • DylanSp 3 years ago
      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.
      • parthokr 3 years ago
        "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.

        • danappelxx 3 years ago
          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.
          • systemnate 3 years ago
            I don't think this is OK with any language.
          • matt7340 3 years ago
            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.

            • skywal_l 3 years ago
              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.
              • 8n4vidtmkvmk 3 years ago
                one person that's burned out and doesn't want to work on it anymore
              • idontwantthis 3 years ago
                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.

                • jsmith99 3 years ago
                  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
                • austhrow743 3 years ago
                  I don’t think the post you linked to says that. Unless the open collective is a Facebook thing?
                  • zaphirplane 3 years ago
                    Not compensation, reimbursement for expenses
                  • tootie 3 years ago
                    I've used this for years and never even knew it came out of Facebook