NTRNL-450 - Add auth middleware #33
dependency-review.yml
on: pull_request
dependency-review
6s
Annotations
1 error and 3 warnings
Error controller tests > Error handler tests > should log alternate error message:
test/unit/controller/error.controller.spec.ts#L93
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "Error 500: An error has occurred. Re-routing to the error screen"
Received: "Error 500: An error has occured. Re-routing to the error screen"
Number of calls: 1
at Object.<anonymous> (/home/runner/work/node-web-template/node-web-template/test/unit/controller/error.controller.spec.ts:102:31)
at Promise.then.completed (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/node-web-template/node-web-template/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/node-web-template/node-web-template/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/node-web-template/node-web-template/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/node-web-template/node-web-template/node_modules/jest-runner/build/testWorker.js:106:12)
|
dependency-review
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/dependency-review-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
🧾 Statement is not covered:
src/middleware/authentication.middleware.ts#L14
Warning! Not covered statement
|
🌿 Branch is not covered:
src/middleware/authentication.middleware.ts#L13
Warning! Not covered branch
|