Commit 1dc6b38
test: add test for loading from global folders
Test executes with a copy of the node executable since $PREFIX/lib/node
is relative to the executable location.
PR-URL: #9283
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 07b92a3 commit 1dc6b38Copy full SHA for 1dc6b38
File tree
Expand file treeCollapse file tree
8 files changed
+109
-0
lines changedOpen diff view settings
Filter options
- test
- fixtures/test-module-loading-globalpaths
- home-pkg-in-both
- .node_libraries
- .node_modules
- home-pkg-in-node_libraries/.node_libraries
- home-pkg-in-node_modules/.node_modules
- local-pkg
- node_modules
- node_path
- parallel
Expand file treeCollapse file tree
8 files changed
+109
-0
lines changedOpen diff view settings
Collapse file
test/fixtures/test-module-loading-globalpaths/home-pkg-in-both/.node_libraries/foo.js
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
Collapse file
test/fixtures/test-module-loading-globalpaths/home-pkg-in-both/.node_modules/foo.js
Copy file name to clipboardExpand all lines: test/fixtures/test-module-loading-globalpaths/home-pkg-in-both/.node_modules/foo.js+1Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
test/fixtures/test-module-loading-globalpaths/home-pkg-in-node_libraries/.node_libraries/foo.js
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
Collapse file
test/fixtures/test-module-loading-globalpaths/home-pkg-in-node_modules/.node_modules/foo.js
Copy file name to clipboardExpand all lines: test/fixtures/test-module-loading-globalpaths/home-pkg-in-node_modules/.node_modules/foo.js+1Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
test/fixtures/test-module-loading-globalpaths/local-pkg/node_modules/foo.js
Copy file name to clipboardExpand all lines: test/fixtures/test-module-loading-globalpaths/local-pkg/node_modules/foo.js+1Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file
test/fixtures/test-module-loading-globalpaths/local-pkg/test.js
Copy file name to clipboard+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
Collapse file
test/fixtures/test-module-loading-globalpaths/node_path/foo.js
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
Collapse file
test/parallel/test-module-loading-globalpaths.js
Copy file name to clipboard+101Lines changed: 101 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
0 commit comments