From 7c28a3e88a0bc59ec2ced961e78abcd733a06648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=B9=E9=B8=BF=E4=BC=9F?= <734824565@qq.com> Date: Mon, 9 Mar 2020 21:02:00 +0800 Subject: [PATCH] Update testing-recipes.md (#2509) Missing code --- content/docs/testing-recipes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/docs/testing-recipes.md b/content/docs/testing-recipes.md index 6c860f13..a7f9e5ff 100644 --- a/content/docs/testing-recipes.md +++ b/content/docs/testing-recipes.md @@ -464,6 +464,8 @@ import React from "react"; import { render, unmountComponentAtNode } from "react-dom"; import { act } from "react-dom/test-utils"; +import Card from "./card"; + jest.useFakeTimers(); let container = null;