Skip to main content

3 posts tagged with "javascript"

View All Tags

Unit Test Like a Pro: Automock, My Open Source Answer to Mocking Frustration

· 6 min read
Omer Morad
Platform Engineer & Testing Advocate

Originally published on Dev.to.

I've been working with TypeScript for a while, and one thing that always seems to be a time-consuming task is manually creating mocks for unit tests when using dependency injection frameworks.

There is often a lack of consistent structure, which can make the experience even more frustrating. It can get repetitive and result in test suites that are difficult to handle and prone to becoming overly complex.

That's why I created Automock. This project is open-source and seeks to change the way we conduct unit testing in TypeScript DI environments. It automatically creates mock objects for classes, improves testing execution speed, and maintaines a consistent structure within DI frameworks such as NestJS and InversifyJS, as well as popular testing libraries like Jest and Sinon.

Why Your Next Node Application Should Use TypeScript

· 7 min read
Omer Morad
Platform Engineer & Testing Advocate

Originally published on Medium.

In my previous article, I was suggesting a strategy for a full transformation from JavaScript to TypeScript in a large-scale R&D operation. In this article, I discuss the conclusions we've drawn as a company while writing microservices with TypeScript and explain why using it for your next Node application is an excellent idea.

How to Move 100 Developers From JavaScript to TypeScript and Stay Alive

· 8 min read
Omer Morad
Platform Engineer & Testing Advocate

Originally published on Medium.

During one of my first days as a new developer at Natural Intelligence, I was requested to write a microservice that interfaced with some external APIs and required some complicated logic. The microservice needed proper software design and architectural planning. Always keen for a new challenge, I was very excited about the mission.

After I presented the High-Level Design document to the relevant parties, I felt like something was missing — a comprehensive examination of all the requirements made me ask myself: “Is JavaScript adequately robust to implement this complex software design?”

Finding the answer to this question took me on a wonderful journey in which I successfully employed a method of implementing a big change in a dynamic organization.