Closed astone123 closed 3 months ago
This PR updates the setup code part of the template to return the promise from worker.start(). I had to update my template to return this so that I could make sure that msw was setup before rendering my app. I figure it should be the default
worker.start()
since 0.19.0, --node, --react-native options was removed, and it will always output following files to a folder:
--node
--react-native
browser.js native.js node.js handlers.js
This PR updates the setup code part of the template to return the promise from
worker.start()
. I had to update my template to return this so that I could make sure that msw was setup before rendering my app. I figure it should be the default