2021-05-12
1940
#vanilla javascript
Michiel Mulders
47767
May 12, 2021 â‹… 6 min read

JavaScript testing: 9 best practices to learn

Michiel Mulders Michiel loves the Node.js and Go programming languages. A backend/core blockchain developer and avid writer, he's very passionate about blockchain technology.

Recent posts:

What is AI code generation and how does it work?

What is AI code generation and how does it work?

Discover how AI code generation works and explore top artificial intelligence coding tools, benefits, and real-world use cases.

Chizaram Ken
Apr 10, 2025 â‹… 4 min read
what is vibe coding

What is vibe coding? And is it worth the hype?

Vibe coding is taking the dev world by storm. Break down what it actually means, how the term became popularized, and why it’s catching on.

Elijah Asaolu
Apr 9, 2025 â‹… 5 min read
typescript record types

Level up your TypeScript with Record types

Learn about the TypeScript Record type, its basic usage, and practical use cases, including how to use it with generics.

Matteo Di Pirro
Apr 9, 2025 â‹… 9 min read
tanstack start framework

An introduction to the TanStack Start framework

Discover the new full-stack React Framework, TanStack Start, and use it to build a simple developer portfolio styled with Tailwind CSS.

Amazing Enyichi Agu
Apr 9, 2025 â‹… 13 min read
View all posts

One Reply to "JavaScript testing: 9 best practices to learn"

  1. Using Faker or random test data is a bad idea. Your tests should be repeatable and deterministic.

    If a test fails because of the data (perhaps you forgot to escape apostrophes and Faker gave you an Irish surname like O’Neill), when you run the test again to debug the code, you won’t have the same data and the test may pass.

Leave a Reply