项鸿伟
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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; |
|
|
|