Commit a3056f4
test: refactor to avoid mutation of global by a loader
This makes the test compatible with off-thread loaders.
Co-Authored-By: Geoffrey Booth <webadmin@geoffreybooth.com>
PR-URL: #46220
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>1 parent 646cadc commit a3056f4Copy full SHA for a3056f4
File tree
Expand file treeCollapse file tree
2 files changed
+41
-16
lines changedOpen diff view settings
Filter options
- test
- es-module
- fixtures/es-module-loaders
Expand file treeCollapse file tree
2 files changed
+41
-16
lines changedOpen diff view settings
Collapse file
test/es-module/test-esm-loader-resolve-type.mjs
Copy file name to clipboardExpand all lines: test/es-module/test-esm-loader-resolve-type.mjs+17-15Lines changed: 17 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
| 10 | + |
| 11 | + |
9 | 12 | |
10 | 13 | |
11 | 14 | |
| ||
17 | 20 | |
18 | 21 | |
19 | 22 | |
20 | | - |
21 | 23 | |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
34 | 36 | |
35 | | - |
| 37 | + |
36 | 38 | |
37 | 39 | |
38 | | - |
| 40 | + |
39 | 41 | |
40 | 42 | |
41 | 43 | |
|
Collapse file
test/fixtures/es-module-loaders/hook-resolve-type.mjs
Copy file name to clipboardExpand all lines: test/fixtures/es-module-loaders/hook-resolve-type.mjs+24-1Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
4 | 27 | |
5 | 28 | |
6 | 29 | |
|
0 commit comments