Closed ovhemert closed 4 years ago
This functionality actually works. Removing comment in code.
Running node ./mock/mock.js > somefile generates valid output.
node ./mock/mock.js > somefile
The problem is with running the npm-script. This echos the execution command in front of the data, which ends up in the file.
Alternative way to run the npm-script: npm run mock --silent > somefile
npm run mock --silent > somefile
This functionality actually works. Removing comment in code.
Running
node ./mock/mock.js > somefile
generates valid output.The problem is with running the npm-script. This echos the execution command in front of the data, which ends up in the file.
Alternative way to run the npm-script:
npm run mock --silent > somefile