diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2018-05-07 06:04:07 +0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-05-18 15:27:29 +0200 |
commit | 9deca876bb94626564184ad263ff80dc8042808b (patch) | |
tree | a0a2010263cbebe71009c43c6aa7c720dd65e9a7 /test | |
parent | c07e85123eae5ad4abb8118c071564dfe1452a52 (diff) | |
download | android-node-v8-9deca876bb94626564184ad263ff80dc8042808b.tar.gz android-node-v8-9deca876bb94626564184ad263ff80dc8042808b.tar.bz2 android-node-v8-9deca876bb94626564184ad263ff80dc8042808b.zip |
test: add loaded modules test
This makes sure there is no regression by switching to loading
eagerly.
PR-URL: https://github.com/nodejs/node/pull/20567
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-bootstrap-modules.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/parallel/test-bootstrap-modules.js b/test/parallel/test-bootstrap-modules.js new file mode 100644 index 0000000000..4a46ac905b --- /dev/null +++ b/test/parallel/test-bootstrap-modules.js @@ -0,0 +1,14 @@ +/* eslint-disable node-core/required-modules */ + +'use strict'; + +// 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. + +const list = process.moduleLoadList.slice(); + +const assert = require('assert'); + +assert(list.length <= 73, list); |