Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@testing-library/react-hooks

Package Overview
Dependencies
Maintainers
16
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/react-hooks - npm Package Compare versions

Comparing version 3.6.0 to 3.7.0

7

lib/cleanup.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -11,10 +9,5 @@ value: true

exports.removeCleanup = removeCleanup;
var _flushMicrotasks = _interopRequireDefault(require("./flush-microtasks"));
let cleanupCallbacks = [];
async function cleanup() {
await (0, _flushMicrotasks.default)();
for (const callback of cleanupCallbacks) {

@@ -21,0 +14,0 @@ await callback();

7

package.json
{
"name": "@testing-library/react-hooks",
"version": "3.6.0",
"version": "3.7.0",
"description": "Simple and complete React hooks testing utilities that encourage good testing practices.",

@@ -48,6 +48,7 @@ "main": "lib/index.js",

"docz-utils": "2.3.0",
"kcd-scripts": "7.5.1",
"kcd-scripts": "7.5.2",
"react": "17.0.1",
"react-test-renderer": "17.0.1",
"typescript": "4.1.2"
"typescript": "4.1.2",
"eslint": "7.15.0"
},

@@ -54,0 +55,0 @@ "peerDependencies": {

@@ -1,24 +0,1 @@

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [react-hooks-testing-library](#react-hooks-testing-library)
- [The problem](#the-problem)
- [The solution](#the-solution)
- [When to use this library](#when-to-use-this-library)
- [When not to use this library](#when-not-to-use-this-library)
- [Example](#example)
- [`useCounter.js`](#usecounterjs)
- [`useCounter.test.js`](#usecountertestjs)
- [Installation](#installation)
- [Peer Dependencies](#peer-dependencies)
- [API](#api)
- [Contributors](#contributors)
- [Issues](#issues)
- [🐛 Bugs](#-bugs)
- [💡 Feature Requests](#-feature-requests)
- [❓ Questions](#-questions)
- [LICENSE](#license)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<div align="center">

@@ -61,3 +38,28 @@ <h1>react-hooks-testing-library</h1>

[![Tweet](https://img.shields.io/twitter/url/https/github.com/testing-library/react-hooks-testing-library.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20react-hooks-testing-library%20by%20%40testing-library%20https%3A%2F%2Fgithub.com%2Ftesting-library%2Freact-hooks-testing-library%20%F0%9F%91%8D)
<!-- prettier-ignore-end -->
## Table of Contents
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
- [The problem](#the-problem)
- [The solution](#the-solution)
- [When to use this library](#when-to-use-this-library)
- [When not to use this library](#when-not-to-use-this-library)
- [Example](#example)
- [`useCounter.js`](#usecounterjs)
- [`useCounter.test.js`](#usecountertestjs)
- [Installation](#installation)
- [Peer Dependencies](#peer-dependencies)
- [API](#api)
- [Contributors](#contributors)
- [Issues](#issues)
- [🐛 Bugs](#-bugs)
- [💡 Feature Requests](#-feature-requests)
- [❓ Questions](#-questions)
- [LICENSE](#license)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## The problem

@@ -64,0 +66,0 @@

@@ -1,7 +0,4 @@

import flushMicroTasks from './flush-microtasks'
let cleanupCallbacks = []
async function cleanup() {
await flushMicroTasks()
for (const callback of cleanupCallbacks) {

@@ -8,0 +5,0 @@ await callback()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc