When clicking run/debug within WebStorm it fails for Jest tests. The reason being the Node options in the jest configuration are set to --watch --experimental-vm-modules
which fails.
I've tried clearing all my templates, resetting to factory settings and reinstalling WebStorm - but this still pre-populates.
The only solution I've found is to manually clear the Node options each time. I've no saved templates that it should be pulling these options from.
Node Options: --watch --experimental-vm-modules
Tried already:
The experimental-vm-modules
flag is auto-added if you have type: module
in the package.json
(see WEB-52967 ). But --watch
is not normmally auto-added. Please check your Jest run configuration template in Run > Edit Configurations, Edit configurations templates
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.