Skip to content

Commit

Permalink
fix(test): update timeout duration
Browse files Browse the repository at this point in the history
  • Loading branch information
jniles committed Jan 17, 2023
1 parent 28da93c commit de1538c
Show file tree
Hide file tree
Showing 4 changed files with 670 additions and 302 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"debug": "^4.3.4",
"delay": "^5.0.0",
"dotenv": "^16.0.2",
"excel4node": "^1.7.0",
"excel4node": "^1.8.0",
"express": "^4.18.2",
"express-handlebars": "^6.0.6",
"express-session": "^1.17.3",
Expand Down Expand Up @@ -151,18 +151,19 @@
},
"devDependencies": {
"@ima-worldhealth/rewire": "^4.1.0",
"@types/node": "^18.11.18",
"angular-mocks": "^1.8.3",
"chai": "^4.3.4",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"chai-datetime": "^1.8.0",
"chai-http": "^4.3.0",
"chai-spies": "^1.0.0",
"chai-spies-next": "^0.9.3",
"cssnano": "^5.1.13",
"del": "^6.1.1",
"eslint": "^8.24.0",
"eslint": "^8.32.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-import": "^2.27.5",
"gulp": "^4.0.0",
"gulp-concat": "^2.6.1",
"gulp-if": "^3.0.0",
Expand All @@ -183,15 +184,15 @@
"karma-mocha": "^2.0.1",
"karma-ng-html2js-preprocessor": "^1.0.0",
"merge-stream": "^2.0.0",
"mocha": "^10.0.0",
"mocha": "^10.2.0",
"postcss": "^8.4.16",
"protractor": "^7.0.0",
"protractor-console-plugin": "^0.1.1",
"qs": "^6.11.0",
"release-it": "^15.4.1",
"release-it": "^15.6.0",
"sinon": "^14.0.0",
"standard-version": "^9.5.0",
"typescript": "^4.8.3"
"typescript": "^4.9.4"
},
"homepage": "https://docs.bhi.ma",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion sh/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ echo "[test] building the server..."

echo "[test] running tests using mocha"
# run the tests
./node_modules/.bin/mocha --recursive --bail --exit ./test/integration/
./node_modules/.bin/mocha --recursive --bail --exit --timeout 20000 ./test/integration/

echo "[/test]"
5 changes: 0 additions & 5 deletions test/integration/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ before(() => {
return agent.post('/auth/login').send(user);
});

beforeEach(function anonymous(done) {
this.timeout(10000);
done();
});

// runs after all tests are completed
after((done) => {
console.log('Test suite completed.');
Expand Down
Loading

0 comments on commit de1538c

Please sign in to comment.