Skip to content

v8.5.0

Latest

Choose a tag to compare

@ava-launchpad ava-launchpad released this 25 Nov 21:04
Immutable release. Only release title and notes can be modified.
8988a72

What's Changed

  • Handle worker thread arguments that Node.js rejects by @novemberborn in #3517

    • Add explicitlyForwardNodeArguments configuration

      Worker threads reject certain arguments (such as --title) when they are passed explicitly via execArgv, even if the parent process was started with them. AVA prepends process.execArgv to the arguments it passes to workers, which triggers ERR_WORKER_INVALID_EXEC_ARGV.

      Setting explicitlyForwardNodeArguments to false stops AVA from prepending process.execArgv. The option defaults to true and is intended to be removed in the next major release, when AVA will stop explicitly forwarding the arguments.

    • Deprecate filterNodeArgumentsForWorkerThreads

      The filterNodeArgumentsForWorkerThreads option will be removed in the next major release. Instead compute nodeArguments from process.execArgv in a config file. You can do this today by setting explicitlyForwardNodeArguments to false.

  • Run TAP reporter in a worker thread, in preparation for moving it out of AVA itself, by @novemberborn in #3521

Full Changelog: v8.4.0...v8.5.0