We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
If you need a server-side resource or service which doesn't yet exist or is out of reach, the goal of mocks is to enable you to quickly create one.
If you have lws-mock-response present in your stack (included by default) you will have the option to set --mocks.
lws-mock-response
--mocks
$ ws --mocks my-mocks-module.js
The very minimum mock module, you can use this as a boilerplate template. Replace MyMockModule with a more useful name.
MyMockModule
module.exports = MockBase => class MyMockModule extends MockBase { mocks () { } }