Added new setting test_workers.node_options
to enable passing node options to individual test worker processes.
Usage:
- This will pass all of
process.execArgv
:
test_workers: {
enabled: true,
// automatically compute the number of workers based on CPU cores
workers: 'auto',
// pass node arguments to individual workers (all of the process.execArgv)
node_options: 'inherit',
},
- This will pass only the specified cli options:
test_workers: {
enabled: true,
workers: 'auto',
// selectively pass node arguments to individual worker processes
node_options: ['--inspect']
},