When writing tests please follow the same approach as we have taken in the other tests. There are many ways to test software and we have chosen ours, so please appreciate that.
The main tests are provided in test folder. Before executing them, first make sure that the Keycloak server was started to run all the integration tests:
npm run server:startRunning all the tests:
npm testRunning specific tests:
tape test/grant-manager-spec.jsWhen developing your test depending on the feature or enhancement you are testing you may find it best to add to an existing test, or to write a test from scratch. For the latter, we recommend finding another test that is close to what you need and use that as a basis.