JS: Add package.json files in tests relying on node_modules

We don't extract node_modules folders by default so these tests aren't
that relevant anymore, and we no longer follow node_modules resolution
rules directly.

Instead, these imports are resolved based on the monorepo support which
simply requires a package.json file to exist. There is not a good enough
reason to support node_modules directly, so we're accepting some
minor regression in these tests.
This commit is contained in:
Asger F
2025-04-29 11:56:21 +02:00
parent 5de2c938d8
commit 70a5ec5607
8 changed files with 28 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
{
"name": "a",
"main": "index.js",
"description": "Nested version of package A"
}

View File

@@ -0,0 +1,3 @@
{
"name": "nested"
}