Our great sponsors
|8 days ago||8 days ago|
|GNU General Public License v3.0 or later||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
How do I unit test my *browser only* typescript project with modules using jest?
3 projects | reddit.com/r/typescript | 10 Apr 2021
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?
Is using Jest for anything other than React a bad idea?
3 projects | reddit.com/r/node | 12 Sep 2022
ts-jest has had some strange performance issues and workarounds in the past, though I haven’t used it very recently so it might have fixed those by now.
Test-Driven Infrastructure Development with Pulumi and Jest
8 projects | dev.to | 14 Jun 2022
Since we're working with TypeScript, we can use ts-jest, which conveniently brings Jest along for the ride:
Improve your Testing with Custom Matchers in Jest
2 projects | dev.to | 18 May 2022
I want to save you from manually copying the snippets one by one, so here is a Gist with the complete test file. This can be easily executed with Jest (or ts-jest for TypeScript).
Testing Mongoose with Ts-Jest
3 projects | dev.to | 20 Apr 2022
A complete guide to full-stack live reload
9 projects | dev.to | 16 Mar 2022
See the Jest configuration docs to learn more about Jest configuration. ts-jest also has good documentation.
Setup Jest to React Typescript Vite project, also SWC (part 1)
13 projects | dev.to | 14 Mar 2022
Using @swc/jest to compile code to CommonJS is much faster than babel-jest, ts-jest which have long cold starts when executing tests in a large project.
Component Testing in Svelte
6 projects | dev.to | 19 Feb 2022
ts-jest: A transformer for handling TypeScript files.
The Ultimate Guide to TypeScript Monorepos
17 projects | dev.to | 26 Nov 2021
Thankfully using TypeScript and TypeScript project references makes the intricate problem of using Jest easier since we can make use of the excellent ts-jest Jest transformer. All we need to do it point ts-jest to the respective tsconfig.json file for each package (see example jest.config.js). Since we have configured TypeScript to be composite and incremental, we do not need to recompile TypeScript for dependencies of a package we want to test, which significantly reduces the runtime for unit tests. ts-jest will also ensure that any error message will reference the line numbers in the source TypeScript files.
Testing Svelte components with Jest and Vite
8 projects | dev.to | 18 Nov 2021
What does it take to support Node.js ESM?
9 projects | dev.to | 12 Aug 2021
There are workarounds, but nothing actually works in 100% of the possible use-cases (see for example, ts-jest issue), and for that reason, we recommend tooling that enables this type of building without needing any workaround, usually using Rollup and/or esbuild.
What are some alternatives?
jest - Super-fast alternative for babel-jest or ts-jest without type checking
bob-esbuild - Building and Running TypeScript projects efficiently with rollup + esbuild
tsc-esm-fix - Make TS projects compatible with esm/mjs requirements
SvelteKit - The fastest way to build Svelte apps
tsup - The simplest and fastest way to bundle your TypeScript libraries.
vite - Next generation frontend tooling. It's fast!
svelte-preprocess - A ✨ magical ✨ Svelte preprocessor with sensible defaults and support for: PostCSS, SCSS, Less, Stylus, Coffeescript, TypeScript, Pug and much more.
parcel - The zero configuration build tool for the web. 📦🚀
plugins - 🍣 The one-stop shop for official Rollup plugins
svelte-vite-jest-template - Svelte template based on Vite's Svelte template, but includes unit testing setup (Jest and Svelte Testing Library).
chokidar - Minimal and efficient cross-platform file watching library