npm test
should not execute outside commands.
#22475
Labels
area: triage
$$ bug-bounty $$
https://www.jhipster.tech/bug-bounties/
theme: undefined
$100
https://www.jhipster.tech/bug-bounties/
Milestone
Overview of the issue
npm test
should mock spawn functions.Outside commands are not reproducible due to the environment.
Generators should run mocked functions that calls outside commands to avoid problems like #22474.
Related issues
#22474
Suggest a Fix
Switch from shelljs and child_process to generator's spawn[Command][Sync] methods.
Mock generator's spawn methods.
JHipster Version(s)
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: