avajs/ava

Print useful message when worker threads cannot be used due to Node.js flags

Open

#3025 opened on May 18, 2022

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (20,600 stars) (1,408 forks)batch import
enhancementhelp wantedscope:reportersscope:test-environment

Description

See discussion in https://github.com/avajs/ava/pull/3015. Certain Node.js flags stop worker threads from working. We should recognize that error (ERR_WORKER_INVALID_EXEC_ARGV) and print a useful error message so users know to disable worker threads in AVA.

Contributor guide