Chrome extension for stubbing endpoints in-browser.
$ git clone https://www.github.com/Calpoog/Stubber.git
$ cd Stubber
$ yarn installThere are two ways in which you can build and run the web app:
-
Build for Production (Minifies, mangles, builds crx):
$ yarn build- Drop .crx file into Chrome
-
Build for Development (Source maps, keeps expanded):
$ yarn startchrome://extensions/> Load unpacked extension >Stubber/build(or use reload link if already loaded)
(TBD)
Tests are incomplete in develop branch:
$ npm run testTo run unit tests continuously during development (watch tests), use:
$ npm run test:watchSimplify development and testing by using in-browser stubs to get the data exactly as you need it for your current scenario. Does not require modifying your project to point to a stub server or setting up a local server solely for the purpose of serving stubs. No hassle about only hitting a stubbing server for a particular URL you may need vs. pointing your entire project toward a stubbed local server.
- Watch
src/assets/extensionsfor changes - Maybe write some tests
- Any more ideas?