@testing-library/react
Advanced tools
Comparing version 14.1.0 to 14.1.1
@@ -463,3 +463,4 @@ 'use strict'; | ||
}); | ||
} else { | ||
} else if (!process.env.RTL_AFTEREACH_WARNING_LOGGED) { | ||
process.env.RTL_AFTEREACH_WARNING_LOGGED = true; | ||
console.warn(`The current test runner does not support afterEach/teardown hooks. This means we won't be able to run automatic cleanup and you should be calling cleanup() manually.`); | ||
@@ -480,3 +481,4 @@ } | ||
}); | ||
} else { | ||
} else if (!process.env.RTL_AFTERALL_WARNING_LOGGED) { | ||
process.env.RTL_AFTERALL_WARNING_LOGGED = true; | ||
console.warn('The current test runner does not support beforeAll/afterAll hooks. This means you should be setting IS_REACT_ACT_ENVIRONMENT manually.'); | ||
@@ -483,0 +485,0 @@ } |
@@ -435,3 +435,4 @@ import * as testUtils from 'react-dom/test-utils'; | ||
}); | ||
} else { | ||
} else if (!process.env.RTL_AFTEREACH_WARNING_LOGGED) { | ||
process.env.RTL_AFTEREACH_WARNING_LOGGED = true; | ||
console.warn(`The current test runner does not support afterEach/teardown hooks. This means we won't be able to run automatic cleanup and you should be calling cleanup() manually.`); | ||
@@ -452,3 +453,4 @@ } | ||
}); | ||
} else { | ||
} else if (!process.env.RTL_AFTERALL_WARNING_LOGGED) { | ||
process.env.RTL_AFTERALL_WARNING_LOGGED = true; | ||
console.warn('The current test runner does not support beforeAll/afterAll hooks. This means you should be setting IS_REACT_ACT_ENVIRONMENT manually.'); | ||
@@ -455,0 +457,0 @@ } |
@@ -38,3 +38,4 @@ "use strict"; | ||
}); | ||
} else { | ||
} else if (!process.env.RTL_AFTEREACH_WARNING_LOGGED) { | ||
process.env.RTL_AFTEREACH_WARNING_LOGGED = true; | ||
console.warn(`The current test runner does not support afterEach/teardown hooks. This means we won't be able to run automatic cleanup and you should be calling cleanup() manually.`); | ||
@@ -55,5 +56,6 @@ } | ||
}); | ||
} else { | ||
} else if (!process.env.RTL_AFTERALL_WARNING_LOGGED) { | ||
process.env.RTL_AFTERALL_WARNING_LOGGED = true; | ||
console.warn('The current test runner does not support beforeAll/afterAll hooks. This means you should be setting IS_REACT_ACT_ENVIRONMENT manually.'); | ||
} | ||
} |
{ | ||
"name": "@testing-library/react", | ||
"version": "14.1.0", | ||
"version": "14.1.1", | ||
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5391929
35285
21