ava
tsdx
Our great sponsors
ava | tsdx | |
---|---|---|
34 | 45 | |
20,608 | 11,135 | |
0.2% | 0.3% | |
8.2 | 0.0 | |
22 days ago | 10 months ago | |
JavaScript | JavaScript | |
MIT License | 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.
ava
-
Painless CLI integration testing
We use Jest Framework for testing. Jest is not a dogma, and, of course, in its place can be any other test runner, such as Mocha or Ava. Let's focus on tests. I'll provide a short example because I don’t want to waste your time. You can find the full version here. It's crucial to read the comments in the code below. Let's go!
-
Speeding up the JavaScript ecosystem – The barrel file debacle
> In the popular jest test runner, each test file is executed in its own child process.
Is that confirmed?
I've been following this issue:
https://github.com/jestjs/jest/issues/6957
And what Jest actually does is still kind of muddy.
In contrast to that, other test runners like AVA have a clear description what happens when:
https://github.com/avajs/ava/blob/main/docs/01-writing-tests...
-
Ask HN: What's your favorite software testing framework and why?
You might want to give ava a spin:
It has a TAP reporter, but more importantly, as opposed to the more popular solutions, like Jest, the way it achieves parallelism is explained in the docs and won't change anytime soon, thus preventing wonky, hard to debug errors which occur when this part is abstracted away.
-
The new React's documentation
I switched to ava for that reason and have been very happy with it. But vitest looks nice, too. Thanks for the pointer.
-
How to create and publish a TypeScript library with ease
Runs unit tests using AVA.
-
Express API Testing
Last but not least important are ava, uvu and tape; they are a really light and fast test runners.
-
Unit testing: What to use, and how?
I've had some good experiences with Ava + Sinon. I've personally disliked Jest because it seemed to do some weird trickery in the background that prevented me from using ES modules.
-
Tech stack discussion
Ava for a simpler environment than Jest, which I usually use. I need to check how to mock ESM with it, though.
-
st2: a fork of "string-table" with more enhancements.
rewrite all tests in TypeScirpt, using ava and c8.
-
Front-end Guide
AVA
tsdx
-
ReactJS Good Practices
tsdx - Zero-config CLI for TypeScript package development
-
Using Next.js components in a custom npm library
Thanks for the insight fellas. Aside question, I was thinking of bootstrapping the project with tsdx, but their last release was well over 2 years ago. Wondering if there are any alternative options for creating libraries?
-
Rollup Library Starter
NOTE: If your project uses TypeScript, I would suggest using tsdx instead.
-
Creating Modern npm Packages
Sadly, it's a bit dead. We switched to dts-cli fork, but tsup looks good too
Used https://tsdx.io/ recently to do this, saved a lot of time and effort.
-
TypeScript is terrible for library developers
I don't depend on the actual typescript docs much but thankfully in @types and in tons of repos there are examples of well written typescript code.
The amount of JS and TS out there is also a bit of a foot gun though so stick with heavily used/starred libs if you aren't sure.
One tool that helps a lot with developing libraries in typescript is TSDX[0] or its successor dts-cli[1] and there is a bunch of good stuff in awesesome-typescript[2].
Maybe library devving is harder?(more work?) with tyepscript but it is worth it for the end developer, especially if that end developer is you. If you aren't using your own libs then you're probably getting paid by someone else to make them or... idk.
-
How to create your own React Components library
We will use a TSDX library - this tool is something similar to create-react-app, but for creating components library. It allows as to initialize a project immediately with already set up bundler, Rollup with Typescript supporting, testing with Jest, code formatter, Prettier and Storybook.
-
Is there a point in writing in TypeScript personal projects that I will maintain myself?
May be you need to try https://tsdx.io/
-
The Node ecosystem (still) has tooling problems
So what is the ideal way to build TypeScript libraries? I've heard that tsdx https://tsdx.io/ is quite good
-
How to include dependent types in library build?
I'd just add the types as a dependency but if you want to bundle them then afaik https://github.com/jaredpalmer/tsdx can do it (though I have never tried).
What are some alternatives?
jest - Delightful JavaScript Testing.
ocapi-proxy - Salesforce Commerce Cloud Node.js OCAPI Proxy Router
Microbundle - 📦 Zero-configuration bundler for tiny modules.
turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]
parcel - The zero configuration build tool for the web. 📦🚀
tsup - The simplest and fastest way to bundle your TypeScript libraries.
vitest - Next generation testing framework powered by Vite.
create-react-app - Set up a modern web app by running one command.
tape - tap-producing test harness for node and browsers
nx - Smart Monorepos · Fast CI
mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser
esbuild - An extremely fast bundler for the web