The coding style is fully defined in [.eslintrc](https://github.com/GoogleChrome/puppeteer/blob/master/.eslintrc.js).
Please make sure to run `npm lint` before submitting PR.
We use JSDoc along with closure annotations. Annotations are encouraged for
all contributions.
## Testing
All new features should be accompanied by tests. Puppeteer tests are located in [test/test.js](https://github.com/GoogleChrome/puppeteer/blob/master/test/test.js)
and are written using [Jasmine](https://jasmine.github.io/) testing framework.
There are also phantomjs tests located under [third_party/phantomjs/test](https://github.com/GoogleChrome/puppeteer/tree/master/third_party/phantomjs). These
are used to test `phantom_shim`.
To run puppeteer tests, use:
```
npm run test-puppeteer
```
To run phantom-shim against phantomjs tests, use:
```
npm run test-phantom
```
To run both puppeteer and phantom_shim tests, use: