Diamond Kata with ES6 and Mocha/Chai

Опубликовано: 17 Май 2026
на канале: Chris
219
4

This is my 5th attempt doing this Kata in ECMAScript6. Being a novice in this technology (I am usually doing C#), I find the project setup still a bit difficult, so I skipped it here.

First of all, I write some tests with faked results to get a feeling of the algorithmic pattern. Then I start implementing parts of the algorithm by writing separate tests reducing the amount of faked data while I do it.

I used Kazam for screen capturing as the native Gnome Shell feature seems to have noticable lags.

I am using WebStorm 2017.2.x and NodeJS 8.x for running the tests. I also have a very minimalistic Babel configuration for running the whole stuff. I did not bother adding anything more fancy like bundling the whole thing into a single JS file with tools like WebPack.