From df73db671beada623a937bf4aad28a486d397971 Mon Sep 17 00:00:00 2001
From: David Sherret <dsherret@users.noreply.github.com>
Date: Thu, 11 Apr 2024 13:18:19 -0400
Subject: fix(npm): local nodeModulesDir was sometimes resolving duplicates of
 same package (#23320)

---
 tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx

(limited to 'tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx')

diff --git a/tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx b/tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx
new file mode 100644
index 000000000..efb95ec90
--- /dev/null
+++ b/tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx
@@ -0,0 +1,10 @@
+// this previously was ending up with two preacts and would crash
+import { useMemo } from "preact/hooks";
+import renderToString from "preact-render-to-string";
+
+function Test() {
+  useMemo(() => "test", []);
+  return <div>Test</div>;
+}
+
+const html = renderToString(<Test />);
-- 
cgit v1.2.3

