Turn on cleaning up of globals.

It will be come default in future jest release, currently jest isn't
emitting any warning so there is no reason to wait to turn it on.
This commit is contained in:
Gaetan Craig-Riou
2025-11-13 09:44:22 +11:00
parent 4e62e20fa8
commit b96a0875f3

View File

@@ -138,7 +138,10 @@ module.exports = {
// testEnvironment: "jest-environment-node",
// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
// this will become default in future jest release
testEnvironmentOptions: {
globalsCleanup: "on",
},
// Adds a location field to test results
// testLocationInResults: false,