reactReact Typescript library with Rollup and Jest - Storybook setupIn this part of React Typescript library setup tutorial I will describe how you can add Storybook base documentation for your components. If…27 Sep 20205 min read
reactReact Typescript library with Rollup and Jest - tests setupIf you are starting from this page I would suggest you to go back to the part 1 of this tutorial where initial Rollup and Typescript setup…02 May 20204 min read
reactReact Typescript library with Rollup and Jest - adding ReactIf you are starting from this page I would suggest you to go back to the part 1 of this tutorial where initial Rollup and Typescript setup…18 Apr 20203 min read
reactReact Typescript library with Rollup and Jest - initializationHere is a tutorial which will show you how to create your own NPM package with React components written in Typescript. You can check https…15 Mar 20208 min read
javascriptWhat are NPM dist tags and how to use themWhile developing or using NPM package registry you may come across command or multiple dist tags available for one package e.g. next tag…22 Feb 20203 min read
javascriptHow to mock global window variables with JestWhile generally everything is extremely easy using Jest, mocking global variables is one thing which is left up to developer. You can…12 Jan 20205 min read
javascriptCustom Jest transformer CSV exampleSometimes you may need a custom Jest transformer. In my case this was a CSV transformer which was needed to test tabular data provided to…04 Sep 20194 min read
javascriptElectron opening link in a new windowOpening a link in a new window/tab is not a big deal when working with a regular single page application rendered inside browser. Usually…11 May 20193 min read
reactReact multiple event handlers performanceHow to bind handlers in React to multiple similar elements e.g. buttons on list? Is it any better to use one handler and identify clicked…09 Mar 20193 min read
reactReact.PureComponent - children vs custom propertiesCan I use the property with React.PureComponent, or do I have to use only custom properties? TLDR; You can use with React.PureComponent as…27 Feb 20192 min read
javascriptIntegration tests with Jest, Selenium and BrowserStack - part 1 - simple exampleAlthough there is much useful information on the official BrowserStack website, you will certainly have a lot of questions when you run…20 Nov 20189 min read
frontendIntegration tests with Jest, Selenium and BrowserStack - part 2 - multiple browsersAs described in part 1 you can run Jest based tests with BrowserStack service. Now I will show how they can be automatically run against…06 Nov 20184 min read
javascriptPublishing NPM package with Rollup, Babel, Flow, Jest and ESLintHere is a description of common tools and files used to create a modern NPM package. Don't hesitate to clone my npm-lib-package-boilerplate…05 Nov 20189 min read
javascriptTime Series Admin - Electron-based alternative to Admin UI for InfluxDBInfluxDB turns out to be a good solution for a time series data which happens to be the cornerstone of my current job. As (probably) every…04 Nov 20183 min read
javascriptFlow type checking for AxiosType checking with Flow is a nice addition to your code. Unfortunately, it is not so intuitive to use Flow with libraries like Axios. The…17 Oct 20183 min read
javascriptImmutableJS .toJS() vs .toArray()General advice is to never convert data from Immutable to native JS types. But if you have to do it use rather than of course if you work…29 Jul 20181 min read
javascriptRunning Jest tests with Flow typed Javascript filesThis will be a simple tutorial about running Jest tests with Flow typed Javascript files in NodeJS project. Problem Recently I've started…28 Jul 20182 min read
javascriptHow to run Jest tests with Rewire pluginAnother Jest connected post. How to test internal module functions that are not exported? Problem I want to test internal function defined…25 Jul 20182 min read
frontendIonic 3 browser splash screen / preloaderThe Splash Screen component is available for a long time but only as Ionic Native component, so we can't use it inside browser. I will…05 Jun 20187 min read
javascriptgraphql-yoga import .graphql filesIt is possible to split you type definitions to multiple files and then merge them back using merge-graphql-schemas ensuring graphql…12 May 20182 min read
frontendIonic 3 Framework - setFocus on opened modal inputUse Angular hook and execute inside it. While working with the Ionic 3 Framework I came across (as it turns out) popular problem of…26 Apr 20182 min read
javascriptIonic Framework 3 - troubleshootingWhile playing with Ionic Framework v3 I came across few errors/problems which I would like to describe here. ion-app did not match eny…13 Apr 20182 min read
javascriptScrollMagic setup for Webpack (a CommonJS setup)ScrollMagic is a great JS library which makes you page look lively. Here is how I manage to integrate it with my Webpack based build process…04 Apr 20172 min read
javascriptCustom scrollbars for HTML elementsSometimes your website may need inner scrolling for an element with overflowing content. In most cases using simple: is not enough to…20 Mar 20171 min read