TypeScript

Simulate UI Scenarios For Front-End Development Members Public

Set up front-end application to switch between different UI states. Simulate all possible scenarios using a fake API server.

Rahul Pulikkot Nath
Rahul Pulikkot Nath
TypeScript

Getting Started With Cypress: An End-to-End Testing Framework Members Public

Cypress is a next-generation front end testing tool built for the modern web. It is the next generation Selenium and enables us to write tests faster, easier, and reliable. Some of the compelling features that I find interesting with Cypress are * Time Travel: Cypress takes snapshots while running the tests

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Testing

Simulating Different Scenarios Using Fake JSON Server API Members Public

How many times have you had to update the API code to return an empty list or throw an error to test edge case scenarios? How do you demo these different API scenarios to someone? The pages and components of our application have different states. Most of these states depend

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Testing

Setting Up Cypress + React App + JSON Server + TypeScript Members Public

For the past couple of weeks, I have been playing around with Cypress and been enjoying the experience. Cypress is a next-generation front end testing tool built for the modern web. It is the next generation Selenium and enables to write tests faster, easier, and reliable. In this post, let&

Rahul Pulikkot Nath
Rahul Pulikkot Nath
Cypress

TypeScript: Use Sum Types To Your Advantage When Modelling Data Members Public

Recently I was working at a client, and we had to take online payment for the service they provide. There were two options to pay - either in part or in full. When paying in full, the payment included a total amount and a refundable amount. When paying in partial,

Rahul Pulikkot Nath
Rahul Pulikkot Nath
TypeScript

Learning TypeScript: Setting up the Environment Members Public

A short post on setting up the environment for starting with TypeScript, so as to see generated JavaScript real-time.

Rahul Pulikkot Nath
Rahul Pulikkot Nath
TypeScript