How do I unit test my *browser only* typescript project with modules using jest?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/typescript

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • ts-jest

    A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.

    I've spent the last 6 hours googling for a solution. I found an issue on ts-jest Github, but the response is basically the maintainers saying "not our problem". They link to an older Feature Request issue, that is hanging open since last september with no answer either.

  • owl

    OWL: A web framework for structured, dynamic and maintainable applications (by odoo)

    not sure what your issue is, but it definitely is possible. https://github.com/odoo/owl is a typescript project, for the browser, with jest as testrunner. No issue. Maybe compare the package.json with yours, it may give you a clue?

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • dnd

    Sure, here's the code, specifically the branch refactor-and-tests. And yes, I know the SCSS code is bad. I'll be rewriting it later.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts