| .. | ||
| check-exports | ||
| fixtures | ||
| get-esm-exports | ||
| hook | ||
| low-level | ||
| multiple-loaders | ||
| other | ||
| register | ||
| typescript | ||
| generic-loader.mjs | ||
| README.md | ||
| version-check.js | ||
These tests are organized as follows:
- Located in the
hookdirectory if they use theHookclass. - Located in the
low-leveldirectory if they use the "low-level" API,addHookandremoveHook. - Other tests are in other adjacent directories.
The tests can be run individually as Node.js programs with non-zero exit codes upon failures. They should be run with the following Node.js command-line options (assuming they're run from the project root):
--require ./test/version-check.js
--experimental-loader ./test/generic-loader.mjs
The entire test suite can be run with npm test.