From a46aa864fd471e4161e5d08ecc7c42475575cb75 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Wed, 26 Feb 2020 18:54:25 +0000 Subject: [PATCH] Add npm version badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3c96e1c..0765c4e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # `react-shallow-renderer` [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/NMinhNguyen/react-shallow-renderer/blob/master/LICENSE) +[![npm version](https://img.shields.io/npm/v/react-shallow-renderer)](https://www.npmjs.com/package/react-shallow-renderer) [![CircleCI](https://img.shields.io/circleci/build/github/NMinhNguyen/react-shallow-renderer)](https://circleci.com/gh/NMinhNguyen/react-shallow-renderer/tree/master) When writing unit tests for React, shallow rendering can be helpful. Shallow rendering lets you render a component "one level deep" and assert facts about what its render method returns, without worrying about the behavior of child components, which are not instantiated or rendered. This does not require a DOM.