ianunay / mock-node

A configurable mock server with an intuitive configuration management interface and a http api
https://medium.com/@i.anunay/mocknode-e338f793dba0
170 stars 11 forks source link

Exiting after import and export #8

Closed sudhanshuraheja closed 7 years ago

sudhanshuraheja commented 7 years ago

I added process.exit after both export and import so that I can add --import to node pretest

ianunay commented 7 years ago

Thanks for the PR!

sudhanshuraheja commented 7 years ago

It doesn't work, please don't merge it.

On Sun, Feb 26, 2017 at 6:35 PM Anunay Inuganti notifications@github.com wrote:

Thanks for the PR!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ianunay/mock-node/pull/8#issuecomment-282554566, or mute the thread https://github.com/notifications/unsubscribe-auth/AABtALeIDp722i9NvW6wsbNGjaPuOqvjks5rgXitgaJpZM4MLOJs .

-- Sudhanshu Raheja

sudhanshuraheja commented 7 years ago

I'm sorry about this. I think what happens is that this exits the process before the import is complete. I got it to work in another way. I'll just send out a PR with that. Sorry about this.