The --filter option limits which test modules are executed by node test.
The default pretest step is still node-gyp rebuild -C test, so
npm test --filter=... still performs a full rebuild of the test addon
targets before the filtered tests run.
- perform the default test rebuild, then run only the
objectwraptest module
npm test --filter=objectwrap
- perform the default test rebuild, then run all test modules ending
with
reference(function_reference,object_reference, andreference)
npm test --filter=*reference
- perform the default test rebuild, then run all tests under
threadsafe_functionandtyped_threadsafe_function, and also theobjectwraptest module
npm test --filter='*function objectwrap'