We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20acad3 commit 220d8d4Copy full SHA for 220d8d4
src/index.js
@@ -9,15 +9,15 @@ if (!process.env.RTL_SKIP_AUTO_CLEANUP) {
9
// ignore teardown() in code coverage because Jest does not support it
10
/* istanbul ignore else */
11
if (typeof afterEach === 'function') {
12
- afterEach(async () => {
13
- await cleanup()
+ afterEach(() => {
+ cleanup()
14
})
15
} else if (typeof teardown === 'function') {
16
// Block is guarded by `typeof` check.
17
// eslint does not support `typeof` guards.
18
// eslint-disable-next-line no-undef
19
- teardown(async () => {
20
+ teardown(() => {
21
22
}
23
0 commit comments