---
title: "Discussion on \"vitest-fail-on-console: Stop Ignoring console.error in Your Tests\" | Hashnode"
description: "Discussion on \"vitest-fail-on-console: Stop Ignoring console.error in Your Tests\". Introducing vitest-fail-on-console — why console.warn/error appearing silently in tests is a code smell, and how this package forces you to deal with it."
url: "https://hashnode.com/posts/vitest-fail-on-console/69f54a92f6f2473c662939e6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [vitest-fail-on-console: Stop Ignoring console.error in Your Tests](https://recca0120.hashnode.dev/vitest-fail-on-console?utm_source=hashnode&utm_medium=feed)

Introducing vitest-fail-on-console — why console.warn/error appearing silently in tests is a code smell, and how this package forces you to deal with it.

May 2 · 3 min read · recca0120.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#testing](https://hashnode.com/tag/testing)
-   [#vitest](https://hashnode.com/tag/vitest)

## Written by

[recca0120](https://hashnode.com/@recca0120)

@recca0120 · Taipei, Taiwan

  
[View profile](https://hashnode.com/@recca0120)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
