rittenhop-ghost/versions/5.94.2/node_modules/import-in-the-middle/test
2024-09-23 19:05:38 -04:00
..
fixtures adding local files for running this....locally 2024-09-23 19:05:38 -04:00
get-esm-exports adding local files for running this....locally 2024-09-23 19:05:38 -04:00
hook adding local files for running this....locally 2024-09-23 19:05:38 -04:00
low-level adding local files for running this....locally 2024-09-23 19:05:38 -04:00
multiple-loaders adding local files for running this....locally 2024-09-23 19:05:38 -04:00
other adding local files for running this....locally 2024-09-23 19:05:38 -04:00
typescript adding local files for running this....locally 2024-09-23 19:05:38 -04:00
generic-loader.mjs adding local files for running this....locally 2024-09-23 19:05:38 -04:00
README.md adding local files for running this....locally 2024-09-23 19:05:38 -04:00
version-check.js adding local files for running this....locally 2024-09-23 19:05:38 -04:00

These tests are organized as follows:

  • Located in the hook directory if they use the Hook class.
  • Located in the low-level directory if they use the "low-level" API, addHook and removeHook.
  • 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.