Commit 23f9275
test: use on-disk fixture for test-npm-install
Instead of writing the fixtures on the fly in the test,
put them in the fixtures directory that can be copied into
a temporary directory to reproduce in a debugger.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #62584
Refs: #61898
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent 4739c45 commit 23f9275Copy full SHA for 23f9275
7 files changed
+34-50Lines changed: 34 additions & 50 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- test
- fixtures/npm-install
- example
- home
- install-dir
- npm-prefix
- npm-tmp
- parallel
Expand file treeCollapse file tree
Open diff view settings
Collapse file
test/fixtures/npm-install/example/example.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/npm-install/example/package.json
Copy file name to clipboard+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
Collapse file
test/fixtures/npm-install/home/.gitkeep
Copy file name to clipboardExpand all lines: test/fixtures/npm-install/home/.gitkeepWhitespace-only changes.
Collapse file
test/fixtures/npm-install/install-dir/package.json
Copy file name to clipboard+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
Collapse file
test/fixtures/npm-install/npm-prefix/.gitkeep
Copy file name to clipboardExpand all lines: test/fixtures/npm-install/npm-prefix/.gitkeepWhitespace-only changes.
Collapse file
test/fixtures/npm-install/npm-tmp/.gitkeep
Copy file name to clipboardExpand all lines: test/fixtures/npm-install/npm-tmp/.gitkeepWhitespace-only changes.
Collapse file
test/parallel/test-npm-install.js
Copy file name to clipboardExpand all lines: test/parallel/test-npm-install.js+23-50Lines changed: 23 additions & 50 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | 9 | |
11 | 10 | |
12 | 11 | |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | 16 | |
39 | | - |
| 17 | + |
| 18 | + |
40 | 19 | |
41 | | - |
| 20 | + |
42 | 21 | |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
52 | 33 | |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
65 | 41 | |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
| 42 | + |
0 commit comments