Skip to content

Commit

Permalink
style: Decrease the Lines Used for Auto cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ITenthusiasm committed Nov 17, 2023
1 parent b963bea commit 3b00695
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import {cleanup} from './render'
// This ensures that tests run in isolation from each other.
// If you don't like this, set the VTL_SKIP_AUTO_CLEANUP variable to 'true'.
if (typeof afterEach === 'function' && !process.env.VTL_SKIP_AUTO_CLEANUP) {
afterEach(() => {
cleanup()
})
afterEach(cleanup)
} else if (!process.env.VTL_AFTEREACH_WARNING_LOGGED) {
process.env.VTL_AFTEREACH_WARNING_LOGGED = true
console.warn(
Expand Down

0 comments on commit 3b00695

Please sign in to comment.