Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.15 KB

DEVELOPING.md

File metadata and controls

39 lines (25 loc) · 1.15 KB

How to contribute

Please follow the general instruction on LoopBack's How To Contribute wiki.

Code style

We use JSHint to ensure our coding style stays consistent. You can check the conformance by running the following command:

$ jshint .

Automated tests

We are using karma to test the generated Angular services. See test.e2e/ and test.e2e/spec/services.spec.js.

Use the following setup while working on a new feature:

  1. Start a test server in the background:

    $ node test.e2e/test-server
    

The test server provides HTTP API for building a temporary loopback application, generating Angular services file for this application and finally exposing the application on an URL accessible from karma tests.

  1. Start the karma runner in the background:

    $ karma run
    

Karma will continually monitor project files and re-run tests every time you make a change.