Skip to content

Commit

Permalink
Merge pull request #2 from lukebellamy053/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
lukebellamy053 authored Jul 31, 2019
2 parents 289a199 + 3c4f8e9 commit 12f6729
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ jobs:
- store_test_results:
path: reports

- run:
name: Compress Artifacts
command: tar -cvf ./reports.tar ./reports

- store_artifacts:
path: ./reports.tar

- store_artifacts:
path: ./reports/junit-custom.xml

Expand Down
4 changes: 2 additions & 2 deletions .mocha/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"reporterEnabled": "spec, mochawesome, mocha-junit-reporter",
"mochawesomeReporterOptions": {
"reportDir": "report"
"reportDir": "reports/mocha"
},
"mochaJunitReporterReporterOptions": {
"mochaFile": "results/junit-custom.xml"
"mochaFile": "reports/junit-custom.xml"
}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

This is a framework for building a microservice with express JS

[![CircleCI](https://circleci.com/gh/lukebellamy053/node-express-microservice/tree/master.svg?style=svg)](https://circleci.com/gh/lukebellamy053/node-express-microservice/tree/master)
[![Maintainability](https://api.codeclimate.com/v1/badges/8f19766e87bd425fb5b6/maintainability)](https://codeclimate.com/github/lukebellamy053/node-express-microservice/maintainability)
<a href="https://codeclimate.com/github/lukebellamy053/node-express-microservice/test_coverage"><img src="https://api.codeclimate.com/v1/badges/8f19766e87bd425fb5b6/test_coverage" /></a>

## Installation
Newer versions of NPM save the package to your package.json by default
```sh
Expand Down
16 changes: 7 additions & 9 deletions test/Utils/PathHandler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ describe('PathHandler', function() {
describe('RegisterProxy', function() {
let serverObject: CustomServer;

before(done => {
let isDone = false;
chai.use(chaiHttp);
serverObject = new CustomServer({ PORT: 8081, APP_BUILD: 1, APP_VERSION: '1', SERVICE_NAME: 'Test' });
ExpressServer.events.on(ServerEvents.SERVER_READY, () => {
if (!isDone) {
done();
isDone = true;
}
before(() => {
return new Promise(resolve => {
chai.use(chaiHttp);
serverObject = new CustomServer({ PORT: 8081, APP_BUILD: 1, APP_VERSION: '1', SERVICE_NAME: 'Test' });
ExpressServer.events.on(ServerEvents.SERVER_READY, () => {
resolve();
});
});
});

Expand Down

0 comments on commit 12f6729

Please sign in to comment.