Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Numbro 2.0.0 #305
a full rewrite of numbro
Wow, quite cool!
Didn't look into code yet, though...
Just for the information, it might be worth to look at Standard as a replacement for pure ESLint, since it comes with reasonable styling and more powerful auto
Another alternative is Prettier coupled with Prettier-based ESLint config.
Also, it is a matter of taste, but most recent Jest and it's watch mode, snapshot testing, built-in coverage are really cool. We've used it on our projects and never looked back.
Well, that's the point of such tools. It's just widely accepted by community standards, you just plug them and stop worrying about all those little things. But yeap, it takes some time to embrace them, and at first it was hard for us to submit to some of their choices too.
But after all, it makes all JS codebase much more uniform. Anyway, it is up to you. I'm just mentioning.
Jest is basically Jasmin on steroids. At first it was completely Jasmin-based, but now they switched to their own engine due to performance limitations of Jasmine, but API mostly same with some cool additions, like snapshots testing. And you really should check their watch. It is really cool.
But in same time since they interchangeable, this isn't really critical choice. Jasmin is cool. Jest too, but tries to be cooler. And it is trendy. Choose whatever your heart desires.
I had a quick look, it indeed looks close, but the mocking library is a bit different. And honestly I don't feel like rewriting all the tests again
I don't think that most part of tests will require any rewriting, but I can fix those which will require it.
But yeap, mocking library is indeed different. And I don't know how much is it different, since I'm trying not to use mocking at all, thus never worked with Jest-one.
Well, if you'll decide that switching to Jest worth it, I can look into mocking part and decide, is it easily portable or not. Meanwhile, will learn Jest's mocking capabilities better...