Yonatan Kra

Yonatan Kra

Family, Code, Run

  • Blog
  • Planned Talks
  • About Me
  • Free Tech Blogging eBook!

Category: Testing

Home / Testing
ECMAScript Module support in Typescript 4.7

How we employed the new ECMAScript Module Support in typescript

April 30, 2022May 7, 2022 Yonatan Kra1 Comment on How we employed the new ECMAScript Module Support in typescript

What is the new standard to serve both an ECMAScript Module (ESM) as well as Commonjs in the same package? How to use it? And how to make Jest and Playwright to work with it?

When developing an npm package, …

Read More

6 Lessons Learned from Using Playwright for UI Tests

April 27, 2022April 27, 2022 Yonatan KraLeave a Comment on 6 Lessons Learned from Using Playwright for UI Tests

Here are 6 practical lessons learned from a production incident, ui-test coverage (using playwright) and code review.

Today we had a small incident in production – one of my teammates found out a feature in on of our component doesn’t …

Read More

5 lessons learned when I TDD an algorithm in JavaScript

December 20, 2021December 21, 2021 Yonatan KraLeave a Comment on 5 lessons learned when I TDD an algorithm in JavaScript

How to develop an algorithm using TDD? In this article we will implement the Diamond-Square algorithm using TDD. This article was inspired by Uncle Bob’s blog post TDD Lesson – Terrain Generation.

Well, one of the things I did during …

Read More
A woman looking at Jest on Canvas picture

How to test HTML5 canvas with jest?

August 4, 2021December 12, 2021 Yonatan KraLeave a Comment on How to test HTML5 canvas with jest?

In this short article you will learn what you need to install in order to prepare a test environment for canvas operations with jest. After finishing the article, you will be ready for some canvas testing action!

In the past …

Read More

How to create a workspace coverage report in nrwl/nx monorepo?

February 6, 2021August 10, 2021 Yonatan Kra2 Comments on How to create a workspace coverage report in nrwl/nx monorepo?

This is going to be a short one. I’m using nrwl/nx a LOT. I’m also testing a LOT. Lately I needed to add a coverage report to one of my nrwl/nx repositories. The coverage tool I was using needed the …

Read More

Musings about tests as documentation

January 16, 2021August 10, 2021 Yonatan KraLeave a Comment on Musings about tests as documentation

This post originated from a non-english post on Linkedin. Here’s a translation of the original post:

Yes, it’s very important to me that the systems I develop are covered by tests.

In this approach I trust that external libraries that

…
Read More

Debug Jest in a NRWL/nx project with webstorm

May 5, 2020August 10, 2021 Yonatan KraLeave a Comment on Debug Jest in a NRWL/nx project with webstorm

Lately I’ve started a to migrate our 5 y/o code base into a NRWL/nx monorepo. I’d might write the process of choosing NRWL/nx as our tech of choice in a different post (write in the comments or message me …

Read More

I’m an instructor at:

Egghead.io

Follow me on

Sign up for my newsletter

Recent Posts

  • How to create a workspace generator as a library in Nx workspace?
  • How we employed the new ECMAScript Module Support in typescript
  • 6 Lessons Learned from Using Playwright for UI Tests
  • How to use webpack and HTML Webpack Plugin to generate HTML pages for multiple entries in 2 steps?
  • A good case for Eval in JavaScript

Categories

  • Algorithms
  • Architecture
  • AskQL
  • Blogging
  • canvas
  • CodeTalks 2019
  • Coding
  • Conferences
  • ConfrontJS 2019
  • debugging
  • Design Patterns
  • devops
  • Gaming
  • Github
  • github actions
  • GraphQL
  • Interview Questions
  • Javascript
  • javascript engine
  • Javascript Israel
  • jest
  • Memory
  • Meta Programming
  • Musings
  • nodejs
  • NPM
  • nx
  • Open Source
  • Performance
  • Playwright
  • Skills
  • Testing
  • typescript
  • Uncategorized
  • WarsawJS
  • Web Component
  • webpack
| beetech by Buzthemes.