Mocking the CSS webpack imports using identity-obj-proxy

I’m sure at some point you have encountered the SyntaxError: Unexpected token . error when preparing tests with Jest, it pointed at the dot of the CSS class name.

({“Object.“:function(module,exports,require,__dirname,__filename,global,jest){.my-class {
^
SyntaxError: Unexpected token .

If you are familiar with it then probably you have resolved it and probably already are using the identity-obj-proxy dependency in your project. For those who are searching for a solution please read on.
Continue reading

Posted in JavaScript, ReactJS | Tagged , , , | Comments Off on Mocking the CSS webpack imports using identity-obj-proxy

Sample SPA – React + Redux with Axios – modifications

In my previous post I’ve created simple app that was loading a list of the users. In this iteration I’ve added a feature so now user can navigate through that list.
Continue reading

Posted in Uncategorized | Comments Off on Sample SPA – React + Redux with Axios – modifications

Sample SPA – React + Redux with Axios

I’ve put together a Codepen showing the sample usage of Redux (State Management) with network requests (via Axios HTTP Client) in the React framework.
Continue reading

Posted in JavaScript, ReactJS | Tagged , , , | Comments Off on Sample SPA – React + Redux with Axios

CSS Tip: Avatar circle made with CSS

Can I Use ‘border-radius’

<img class='avatar circle' src='image.jpg' />

.circle {
    border-radius: 50%;
}

See the Pen circle avatar with CSS by Lukasz Grela (@LukaszGrela) on CodePen.0

Posted in CSS, HTML | Tagged , | Comments Off on CSS Tip: Avatar circle made with CSS

15/02/1941

On this day in 1941 during the “Adolphus” operation for the first time to the occupied Poland the Special Operations Paratroops “Cichociemni” (the “Silent Unseen”) were dispatched. With them in this drop was the courier of the Delegatury Rządu na Kraj (Government Delegation for Poland) Mr Czesław Raczkowski. They’ve jumped over the Włoszczowa area.

Posted in history | Tagged , | Comments Off on 15/02/1941