Show HN: Baretest – A Minimalistic Alternative to Jest
volument.com
volument.com
Does it work when minified, or does it need node?
(By the way, you should probably not require an account to be on your waiting list)
And yes. Bareserver needs Node currently and is not designed for client-side testing. It's trivial to add if needed.
Made it more clear that account is not needed and email is enough. Thanks!
Jesus. Didn't know it is _that_ big.
I haven't found Jest to be a bottleneck at all, but all the other stuff (transpiling TS, rendering a DOM for React component tests, etc...). Jest supports all this out of the box, more or less, or with a few plugins - baretest doesn't. I guess you have to configure external libraries (jsdom, webpack, babel?) to do this with baretest. Now your tests are slow, like in Jest! Turns out the test runner isn't the bottleneck, but all the other stuff that happens before the actual execution.
Some real benchmarks would make this article much more convincing - and not just with a basic "sum" function, but various examples (some simple node tests, some API tests, some jsdom tests...)
I don't think baretest or minimalist libraries are bad, but I also don't think anyone using Jest could really consider this an alternative, unless your use case is very simple.
With Baretest all the custom things you do like transpiling TS or rendering React is done outside the test runner. This way it can test cases of any complexity.
Again, I like simple... but it seems like to move from Jest to baretest I'd be giving up a lot, in terms of both features and time from saving my file to seeing the test result.