Commit 3d89331
test_runner: use module.registerHooks in module mocks
Migrate away from module.register(). This no longer needs to
deal with the worker synchronization.
PR-URL: #60326
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>1 parent 063fbd8 commit 3d89331Copy full SHA for 3d89331
File tree
Expand file treeCollapse file tree
5 files changed
+54
-190
lines changedOpen diff view settings
Filter options
- lib/internal/test_runner
- mock
- test/parallel
Expand file treeCollapse file tree
5 files changed
+54
-190
lines changedOpen diff view settings
Collapse file
lib/internal/test_runner/coverage.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/coverage.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
|
Collapse file
lib/internal/test_runner/mock/loader.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/mock/loader.js+20-70Lines changed: 20 additions & 70 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
4 | | - |
5 | 3 | |
6 | 4 | |
7 | 5 | |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
15 | 11 | |
16 | 12 | |
17 | 13 | |
18 | 14 | |
19 | 15 | |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | 16 | |
27 | 17 | |
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 | | - |
| 18 | + |
72 | 19 | |
73 | 20 | |
74 | | - |
| 21 | + |
75 | 22 | |
76 | 23 | |
77 | 24 | |
| ||
95 | 42 | |
96 | 43 | |
97 | 44 | |
98 | | - |
| 45 | + |
99 | 46 | |
100 | 47 | |
101 | 48 | |
| ||
105 | 52 | |
106 | 53 | |
107 | 54 | |
108 | | - |
| 55 | + |
109 | 56 | |
110 | 57 | |
111 | 58 | |
| ||
130 | 77 | |
131 | 78 | |
132 | 79 | |
133 | | - |
| 80 | + |
134 | 81 | |
135 | 82 | |
136 | 83 | |
137 | 84 | |
138 | 85 | |
139 | 86 | |
140 | | - |
| 87 | + |
141 | 88 | |
142 | 89 | |
143 | 90 | |
| ||
196 | 143 | |
197 | 144 | |
198 | 145 | |
199 | | - |
200 | | - |
201 | | - |
202 | | - |
203 | | - |
204 | | - |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
Collapse file
lib/internal/test_runner/mock/mock.js
Copy file name to clipboardExpand all lines: lib/internal/test_runner/mock/mock.js+33-59Lines changed: 33 additions & 59 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | | - |
7 | 5 | |
8 | 6 | |
9 | 7 | |
10 | | - |
11 | 8 | |
12 | 9 | |
13 | 10 | |
| ||
19 | 16 | |
20 | 17 | |
21 | 18 | |
22 | | - |
23 | | - |
24 | | - |
25 | 19 | |
26 | 20 | |
27 | 21 | |
| ||
54 | 48 | |
55 | 49 | |
56 | 50 | |
57 | | - |
58 | 51 | |
59 | | - |
60 | 52 | |
61 | 53 | |
62 | 54 | |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | 55 | |
71 | 56 | |
72 | 57 | |
| ||
76 | 61 | |
77 | 62 | |
78 | 63 | |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
79 | 69 | |
80 | 70 | |
81 | 71 | |
| ||
201 | 191 | |
202 | 192 | |
203 | 193 | |
| 194 | + |
204 | 195 | |
205 | | - |
206 | 196 | |
207 | 197 | |
208 | 198 | |
| ||
218 | 208 | |
219 | 209 | |
220 | 210 | |
221 | | - |
222 | 211 | |
223 | 212 | |
224 | 213 | |
225 | 214 | |
226 | 215 | |
227 | 216 | |
228 | 217 | |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
233 | 230 | |
234 | | - |
235 | | - |
| 231 | + |
236 | 232 | |
237 | 233 | |
238 | 234 | |
239 | 235 | |
240 | | - |
241 | | - |
242 | | - |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
243 | 241 | |
244 | 242 | |
245 | 243 | |
| ||
261 | 259 | |
262 | 260 | |
263 | 261 | |
264 | | - |
265 | | - |
266 | | - |
267 | | - |
268 | | - |
269 | | - |
270 | | - |
271 | | - |
272 | | - |
273 | | - |
274 | | - |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
275 | 268 | |
276 | 269 | |
277 | 270 | |
| ||
654 | 647 | |
655 | 648 | |
656 | 649 | |
657 | | - |
| 650 | + |
658 | 651 | |
659 | 652 | |
660 | 653 | |
| ||
828 | 821 | |
829 | 822 | |
830 | 823 | |
831 | | - |
| 824 | + |
832 | 825 | |
833 | 826 | |
834 | | - |
835 | | - |
836 | | - |
837 | | - |
838 | | - |
839 | | - |
840 | | - |
| 827 | + |
841 | 828 | |
842 | 829 | |
843 | 830 | |
844 | | - |
845 | 831 | |
846 | 832 | |
847 | 833 | |
| ||
941 | 927 | |
942 | 928 | |
943 | 929 | |
944 | | - |
945 | | - |
946 | | - |
947 | | - |
948 | | - |
949 | | - |
950 | | - |
951 | 930 | |
952 | 931 | |
953 | 932 | |
| ||
962 | 941 | |
963 | 942 | |
964 | 943 | |
965 | | - |
966 | | - |
967 | | - |
968 | | - |
969 | | - |
970 | 944 | |
971 | 945 | |
Collapse file
test/parallel/test-permission-dc-worker-threads.js
Copy file name to clipboardExpand all lines: test/parallel/test-permission-dc-worker-threads.js-19Lines changed: 0 additions & 19 deletions
This file was deleted.
0 commit comments