- src -- services --- FetchPageLinks.js -- components -- tests --- index.js --- FetchPageLinks.js
Put your services into the
src/services folder. They will be accessible from within
webmiddle-devtools. Their props, context options and return value should all be JSON-serializable since will be transferred over the network.
Put your other components into
Organize your tests info multiple files and folders into
Remember to export the tests with index.js files or they won't be accessible from within
Every test you define also creates a Service that can be used within
webmiddle-devtools to debug the test. This is done by using test-wrapper.js. If you would like to use another testing library, then you should create an appropriate
Ckeck out src/tests/FetchPageLinks for an example.
webmiddle-server together with
webmiddle-devtools and rebuild automatically on changes with
To change the ports of
webmiddle-devtools, set the PORT env variable in
In the evaluation tab, you can also put the description of a test to search for it.
Make sure to set the
debug context option to
true, otherwise you won't be able to inspect the evaluation call tree.
context.options and then press Evaluate.