mrc-6085 Error handling #25
Annotations
8 errors and 1 warning
tests/integration/index.spec.ts > index endpoint > returns package version:
tests/integration/index.spec.ts#L11
AssertionError: expected undefined to be '0.0.1' // Object.is equality
- Expected:
"0.0.1"
+ Received:
undefined
❯ tests/integration/index.spec.ts:11:30
|
tests/unit/logging.spec.ts > initialiseLogging > registers morgan custom format:
src/logging.ts#L14
TypeError: default.token is not a function
❯ Module.initialiseLogging src/logging.ts:14:12
❯ tests/unit/logging.spec.ts:15:9
|
tests/unit/routes.spec.ts > registerRoutes > registers expected routes:
src/routes.ts#L12
TypeError: router.use is not a function
❯ Module.registerRoutes src/routes.ts:12:12
❯ tests/unit/routes.spec.ts:21:24
|
tests/unit/controllers/indexController.spec.ts > IndexController > returns expected content and status:
src/jsonResponse.ts#L4
TypeError: res.header is not a function
❯ addContentType src/jsonResponse.ts:4:9
❯ jsonResponseSuccess src/jsonResponse.ts:8:5
❯ Function.getIndex src/controllers/indexController.ts:7:9
❯ tests/unit/controllers/indexController.spec.ts:13:25
|
tests/unit/controllers/tileController.spec.ts > TileController > returns 404 if dataset not found:
src/errors/asyncControllerHandler.ts#L8
TypeError: next is not a function
❯ __vite_ssr_exports__.default src/errors/asyncControllerHandler.ts:8:9
❯ Function.getTile src/controllers/tileController.ts:18:9
❯ expect404Response tests/unit/controllers/tileController.spec.ts:56:9
❯ tests/unit/controllers/tileController.spec.ts:69:9
|
tests/unit/controllers/tileController.spec.ts > TileController > returns 404 if level not found:
src/errors/asyncControllerHandler.ts#L8
TypeError: next is not a function
❯ __vite_ssr_exports__.default src/errors/asyncControllerHandler.ts:8:9
❯ Function.getTile src/controllers/tileController.ts:18:9
❯ expect404Response tests/unit/controllers/tileController.spec.ts:56:9
❯ tests/unit/controllers/tileController.spec.ts:80:9
|
tests/unit/controllers/tileController.spec.ts > TileController > returns 404 if tile not found:
src/errors/asyncControllerHandler.ts#L8
TypeError: next is not a function
❯ __vite_ssr_exports__.default src/errors/asyncControllerHandler.ts:8:9
❯ Function.getTile src/controllers/tileController.ts:18:9
❯ expect404Response tests/unit/controllers/tileController.spec.ts:56:9
❯ tests/unit/controllers/tileController.spec.ts:91:9
|
test-and-push
Process completed with exit code 1.
|
test-and-push
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|