The way browser-tap
is inspired by zalmoxisus/redux-devtools-extension
.
This extension injects window.tapExtension
as function in the inspected window. This function is picked up and called by the browser-tap
wrapper. It will delegate the execution of tests and forward the results to the devtools panel.
To build the extension, go into the extension
folder, simply run:
npm install
npm run build # or npm start for a watch mode
Then, simple follow the official guide to load the build extension from ./extension/dist
Reloading the extension after a build is quite painful:
- click the
Reload
button inchrome://extensions
- close + reopen the DevTools