[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=node-mocks-http&package-manager=npm_and_yarn&previous-version=1.15.1&new-version=1.16.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
---------
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robin Tail
---
package.json | 2 +-
src/testing.ts | 5 +++--
yarn.lock | 8 ++++----
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/package.json b/package.json
index 6a9be6d75..61d030667 100644
--- a/package.json
+++ b/package.json
@@ -78,7 +78,7 @@
},
"dependencies": {
"ansis": "^3.2.0",
- "node-mocks-http": "^1.15.1",
+ "node-mocks-http": "^1.16.0",
"openapi3-ts": "^4.4.0",
"ramda": "^0.30.1"
},
diff --git a/src/testing.ts b/src/testing.ts
index 3f0e6ed5b..43c70b1a3 100644
--- a/src/testing.ts
+++ b/src/testing.ts
@@ -1,4 +1,4 @@
-import { Request } from "express";
+import { Request, Response } from "express";
import { FlatObject, getInput } from "./common-helpers";
import { CommonConfig } from "./config-type";
import { AbstractEndpoint } from "./endpoint";
@@ -20,7 +20,8 @@ export const makeRequestMock = (props?: REQ) => {
return mock as typeof mock & REQ;
};
-export const makeResponseMock = (opt?: ResponseOptions) => createResponse(opt);
+export const makeResponseMock = (opt?: ResponseOptions) =>
+ createResponse(opt);
export const makeLoggerMock = (loggerProps?: LOG) => {
const logs: Record = {
diff --git a/yarn.lock b/yarn.lock
index 12ec94be9..f84df5b28 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2635,10 +2635,10 @@ node-emoji@^2.1.3:
emojilib "^2.4.0"
skin-tone "^2.0.0"
-node-mocks-http@^1.15.1:
- version "1.15.1"
- resolved "https://registry.yarnpkg.com/node-mocks-http/-/node-mocks-http-1.15.1.tgz#668591d5fd5af6d927e3c8bed0e2214a8d9f8d47"
- integrity sha512-X/GpUpNNiPDYUeUD183W8V4OW6OHYWI29w/QDyb+c/GzOfVEAlo6HjbW9++eXT2aV2lGg+uS+XqTD2q0pNREQA==
+node-mocks-http@^1.16.0:
+ version "1.16.0"
+ resolved "https://registry.yarnpkg.com/node-mocks-http/-/node-mocks-http-1.16.0.tgz#c54c75fce7b7bec9afed9a00606d3c69e9ae8dc4"
+ integrity sha512-jmDjsr87ugnZ4nqBeX8ccMB1Fn04qc5Fz45XgrneJerWGV0VqS+wpu/zVkwv8LDAYHljDy5FzNvRJaOzEW9Dyw==
dependencies:
"@types/express" "^4.17.21"
"@types/node" "*"