You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: make parallel/test-bootstrap-modules easier to reason about #23884
// Ordinarily test files must require('common') but that action causes
// the global console to be compiled, defeating the purpose of this test.
// This makes sure no additional files are added without carefully considering
// lazy loading. Please adjust the value if necessary.
constlist=process.moduleLoadList.slice();
constassert=require('assert');
assert(list.length<=78,list);
The test uses a magic number that can only be reasonably found empeericaly. That number also changes depending on what CLI parameters are used, or if run with a test harness.
Some suggestions for improvement have been:
blacklist some modules that we know we don’t want to have loaded unconditionally, rather than set a fixed number. (@addaleax)
Just reports from the CI or add something informative to the test runner output. (@devsnek)
Activity
devsnek commentedon Oct 25, 2018
fwiw my suggestion is now a whitelist of modules
ho-dor commentedon Nov 8, 2018
Can I work on this as this has a good first issue tag? @refack
Trott commentedon Nov 20, 2018
I kind of wonder if the test should be removed.