lb-declarative-e2e-test
allows to write tests for Loopback.io in an object definition style.
{
name: 'admin CAN create',
verb: 'post',
auth: usersCredentials.admin,
body: {some: 'value'},
url: '/some/url/',
expect: 200
}
It combines and exposes API from Mocha and supertest but without the boilerplate.
npm install --save-dev lb-declarative-e2e-test
# or
npm i -D lb-declarative-e2e-test
The documentation is available on the project's page
Please share your feedback and report the encountered issues on the project's issues page.
A demo example is available on Github.