Repository navigation
Commit ef2a86b
committed
test: make three cases hermetic against a shared global
ConfigTestCases and ConfigCacheTestCases run the same cases, and a worker that
shares one global between test files (Bun's --workerThreads) carries their
leftovers into the second run. The harness only clears globals whose name
contains "webpack", so a plain counter survives: the deferred-evaluation case
then saw a non-zero count and the inline-exports case saw its side effects
twice. Both now clear their own counter.
The amd-runtimeChunk library variants are a timing difference, not a leftover:
the `promise` external is still settling when the harness deletes the chunk
loading globals, which only survives because Node gives each test file a fresh
global. Filtered out under Bun until the harness can await those externals.1 parent 3699110 commit ef2a86b
3 files changed
Lines changed: 17 additions & 0 deletions
File tree
- test/configCases
- defer-import/set-does-not-trigger-evaluation
- inline-exports/module-declarations
- library/1-use-library
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments