summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/conditional_exports
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-13 14:18:29 -0400
committerGitHub <noreply@github.com>2023-03-13 18:18:29 +0000
commit44b0d4cb11853bcdc7aa61c1412719a13d572b24 (patch)
tree074bcf6b77b4174343c4d0f3c239c53b7adf8350 /cli/tests/testdata/npm/conditional_exports
parente8f22c076525c2fa55115349157f67085df287bf (diff)
fix(npm): show a progress bar when initializing the node_modules folder (#18136)
Creating the node_modules folder when the packages are already downloaded can take a bit of time and not knowing what is going on can be confusing. It's better to show a progress bar.
Diffstat (limited to 'cli/tests/testdata/npm/conditional_exports')
-rw-r--r--cli/tests/testdata/npm/conditional_exports/main_node_modules.out18
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/conditional_exports/main_node_modules.out b/cli/tests/testdata/npm/conditional_exports/main_node_modules.out
new file mode 100644
index 000000000..525f31d5c
--- /dev/null
+++ b/cli/tests/testdata/npm/conditional_exports/main_node_modules.out
@@ -0,0 +1,18 @@
+Download http://localhost:4545/npm/registry/@denotest/conditional-exports
+Download http://localhost:4545/npm/registry/supports-esm
+Download http://localhost:4545/npm/registry/has-package-exports
+Download http://localhost:4545/npm/registry/@ljharb/has-package-exports-patterns
+Download http://localhost:4545/npm/registry/@denotest/conditional-exports/1.0.0.tgz
+Initialize @denotest/conditional-exports@1.0.0
+Download http://localhost:4545/npm/registry/@ljharb/has-package-exports-patterns/has-package-exports-patterns-0.0.2.tgz
+Initialize @ljharb/has-package-exports-patterns@0.0.2
+Download http://localhost:4545/npm/registry/has-package-exports/has-package-exports-1.3.0.tgz
+Initialize has-package-exports@1.3.0
+Download http://localhost:4545/npm/registry/supports-esm/supports-esm-1.0.0.tgz
+Initialize supports-esm@1.0.0
+{ hello: "from esm" }
+{ hello: "from foo" }
+{ hello: "from esm client" }
+{ hello: "from esm client foo" }
+{ hello: "from esm client bar" }
+true