Skip to content

Commit

Permalink
update jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Jan 11, 2021
1 parent ade81cc commit 083a3af
Show file tree
Hide file tree
Showing 4 changed files with 1,059 additions and 817 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"eslint-plugin-react-hooks": "^4",
"html-webpack-plugin": "4.5.1",
"husky": ">=4",
"jest": "24.8.0",
"jest": "^26.6.3",
"json2csv": "^4.5.2",
"lint-staged": ">=10",
"mini-css-extract-plugin": "1.3.3",
Expand Down
4 changes: 2 additions & 2 deletions spec/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function bindServer() {
});
});

beforeEach(async () => {
beforeEach(() => {
return reconfigureServer();
});

Expand Down Expand Up @@ -141,7 +141,7 @@ function bindAll() {
async function getJwtToken() {
const AuthService = require(`${SPEC_PATH}/../src/api/services/auth`);
const authService = new AuthService();
return authService.connectUser('lambda_github_code');
return await authService.connectUser('lambda_github_code');
}

module.exports = {
Expand Down
1 change: 1 addition & 0 deletions spec/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ module.exports = {
SPEC_PATH: __dirname,
},
preset: '@shelf/jest-mongodb',
testTimeout: 30000,
};
Loading

0 comments on commit 083a3af

Please sign in to comment.