Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

docs: fix duplicate global leak documentation (#5461)

Kelechi Ebiri1164b9da895e
diff --git a/docs-next/src/content/docs/explainers/find-global-leak.mdx b/docs-next/src/content/docs/explainers/find-global-leak.mdx
deleted file mode 100644
index 6b910e6f..00000000
--- a/docs-next/src/content/docs/explainers/find-global-leak.mdx
+++ /dev/null
@@ -1,16 +0,0 @@
----
-description: How to find a global leak.
-title: global link
----
-
-Detecting which module is causing a global leak can be tedious. Add these lines at the very beginning of your tests, or in a file which is included via `--require`:
-
-```javascript
-Object.defineProperty(global, "name_of_leaking_property", {
- set: function(value) {
- throw new Error("Found the leak!");
- }
-});
-```
-
-This will print a stacktrace that shows which module caused the leak. And if it's not yours - go open a pull request! :)
diff --git a/docs/api-tutorials/find-global-leak.md b/docs/api-tutorials/find-global-leak.md
deleted file mode 100644
index 2a61ea18..00000000
--- a/docs/api-tutorials/find-global-leak.md
+++ /dev/null
@@ -1,11 +0,0 @@
-Detecting which module is causing a global leak can be tedious. Add these lines at the very beginning of your tests, or in a file which is included via `--require`:
-
-```javascript
-Object.defineProperty(global, "name_of_leaking_property", {
- set: function(value) {
- throw new Error("Found the leak!");
- }
-});
-```
-
-This will print a stacktrace that shows which module caused the leak. And if it's not yours - go open a pull request! :)