Skip to content

Commit

Permalink
Merge #1913 #2028
Browse files Browse the repository at this point in the history
1913: fix: update dependency apollo-server-express to v3 (master) r=ZauberNerd a=renovate[bot]

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

2028: chore: update dependency husky to v7 (master) r=ZauberNerd a=renovate[bot]

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Robert Kowalski <[email protected]>
Co-authored-by: Philipp Hinrichsen <[email protected]>
  • Loading branch information
4 people authored Feb 17, 2022
3 parents 9e360c7 + 687ca03 + 0277b7b commit e8c3a39
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 429 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint -e $HUSKY_GIT_PARAMS
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"release:rollback": "yarn is-release-bot-commit && git reset --hard HEAD^",
"release:create-nightly": "yarn release premajor --conventional-prerelease --preid nightly",
"release:rc": "yarn release --conventional-prerelease --preid rc",
"release:graduate": "yarn release --conventional-graduate"
"release:graduate": "yarn release --conventional-graduate",
"prepare": "husky install"
},
"canarist": {
"projects": [
Expand Down Expand Up @@ -97,12 +98,6 @@
}
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css}": [
"prettier --list-different"
Expand Down Expand Up @@ -259,7 +254,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"husky": "^4.3.8",
"husky": "^7.0.0",
"jest": "^27.0.0",
"jest-runner-eslint": "1.0.0",
"jest-runner-prettier": "0.3.7",
Expand Down
4 changes: 3 additions & 1 deletion packages/apollo-mock-server/lib/mock-server-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import extendContext from 'hops-apollo-mock-server/context-extender';

const apolloAppPromise = Promise.resolve(
typeof schema === 'function' ? schema() : schema
).then((resolvedSchema) => {
).then(async (resolvedSchema) => {
const app = express();
app.use(cookieParser());

Expand All @@ -23,6 +23,8 @@ const apolloAppPromise = Promise.resolve(
context: (context) => extendContext({ ...context, config: hopsConfig }),
});

await server.start();

server.applyMiddleware({
app,
path: hopsConfig.graphqlMockServerPath,
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-mock-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"displayName": "unit"
},
"dependencies": {
"apollo-server-express": "^2.23.0",
"apollo-server-express": "^3.0.0",
"cookie-parser": "^1.4.4",
"cross-fetch": "^3.0.4",
"express": "^4.17.1",
Expand Down
Loading

0 comments on commit e8c3a39

Please sign in to comment.