134 karma · joined Jan 31, 2012 (14y ago) · 93 submissions
email: contact@izelnakri.com
comment 8mo ago · link · parent
I got tired of test frameworks that require config files, plugins, and 50MB of dependencies just to run assert.equal. So I built QUnitX.
The pitch is simple: one test file, three runtimes, no changes.
import { module, test } from 'qunitx';
module('Math', () => {
test('addition', (assert) => {
assert.equal(2 + 2, 4);
});
});
node --test math-test.js
deno test math-test.js
qunitx math-test.js # browser, headless
Why QUnit?
I know the reaction: "QUnit? That jQuery thing from 2008?" — yes, exactly. That's the point. It's been solving real edge cases for 16 years that Jest/Vitest are still catching up to. assert.deepEqual correctly handles circular references, typed arrays, Maps, Sets, prototype chains. assert.step / assert.verifySteps catches missing async callbacks that other frameworks silently swallow. assert.expect(n) fails if the wrong number of assertions ran — invaluable when async code paths are involved.
What QUnitX actually does:
- Wraps Node's built-in node:test runner with the QUnit lifecycle (no Jest, no Vitest, nothing extra)
- Wraps Deno's native BDD runner the same way
- Browser path is a thin re-export of QUnit itself — full browser UI with filterable, shareable test URLs
TypeScript works out of the box (node --import=tsx/esm --test). Coverage via npx c8. Watch mode via --watch. Zero runtime dependencies.
The browser demo is what I'm most proud of — the QUnit UI lets you filter to any test and share the URL, so your colleague sees the exact same filtered view. We've been using this in production for years and it never gets old.
Repo: https://github.com/izelnakri/qunitx2.
QUnitX: Run the same test file in Node, Deno, and the browser. Zero dependencies(github.com ↗)
1 points · by izelnakri · 8mo ago · 1 comment
3.
Show HN: Async.nvim: Full Promise spec for Neovim and async NPM lib port for Lua(github.com ↗)
4 points · by izelnakri · 2y ago · discuss
6.
Show HN: QUnitX – Oldest, flexible JavaScript test API in Deno, node and browser(github.com ↗)
3 points · by izelnakri · 3y ago · discuss
comment 3y ago · link · parent
10.
Deno: NPM compatibility is stabilized in 1.28(deno.com ↗)
2 points · by izelnakri · 3y ago · discuss
comment 4y ago · link · parent
> why would any hiring manager reasonably expect that to be different after hiring them again for job 11
Thats is I think still the wrong approach, signals the wrong mentality in an IT company(a company thats greatest asset is its employees). Investing in employees can never be a saving center in a good IT business, considering all businesses are becoming IT businesses perhaps in every business in this context. If a candidate has the skills and took time to apply, if they are qualified you are responsible to hire them and keep them. If I was the manager of the hiring manager, I’d probably fire this hiring manager for keeping the organization dumber, and seeks his own interest/status-quo seeking behavior & protectionism with this behavior/approach/mentality. I do believe in moving mountains in 3-6 months, especially in badly managed projects or super fast growing companies.
comment 4y ago · link · parent
comment 4y ago · link · parent
The fact that this became the most upvoted comment on hacker news signals me something sad about this sites moderation. In addition to the fact that other most upvoted comments(arguments) are lacking depth and good context:
1 - not standard so I won't use it(yet mitigating would be easy & basic and there is a major/popular implementation in typescript), 2- I don't like how it looks(decades long I'm an artist argument)
Good arguments & discussions usually require in-depth knowledge, given how fast programming communities grow, there will be people who make these shallow arguments and they will get upvoted(will have more people agreeing to them).
Sadly this means old communities like hacker news content and moderation will get spoiled by this behavior and standard committees will keep getting many noisy pushback & shallow criticisms as more people become programmers and will have tendency to share their newly formed opinions rather too quickly.
I like and ok with criticisms, however I hope and expect them to be in-depth, not disappointingly this shallow.
comment 4y ago · link · parent
People should ideally stop using whatsapp and move over to Telegram as it seems to be the only one that has whatsapp UX parity. Thats what I did, and I also have signal, discord etc and I own no shares of Telegram.
comment 5y ago · link · parent
There are no performance issues with ember.js glimmer engine, large payload argument is also old and wrong for big apps, among other wrong claims in a single sentence.
I will not argue with anyone here below on hacker news. If you reply to my comment chances are I might not respond back. I just skimmed the article and saw this part, made me realize I shouldn’t read this article further.
comment 5y ago · link · parent
19.
QUnitX: Easily run the oldest JavaScript test framework in CLI or browser(github.com ↗)
2 points · by izelnakri · 5y ago · discuss
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 6y ago · link · parent
23.
Ember.js v3.22 Released(blog.emberjs.com ↗)
2 points · by izelnakri · 6y ago · discuss
24.
Ember 3.21 Released(blog.emberjs.com ↗)
2 points · by izelnakri · 6y ago · discuss