`yarn run test` is falling for `/ping`
During the integration of CI, I have the following error when executing yarn run test
:
yarn run test
yarn run v1.22.5
warning package.json: License should be a valid SPDX license expression
$ yarn run clean && yarn run build
warning package.json: License should be a valid SPDX license expression
$ lb-clean dist *.tsbuildinfo .eslintcache
warning package.json: License should be a valid SPDX license expression
$ lb-tsc
$ lb-mocha --allow-console-logs "dist/__tests__"
HomePage
(node:574) [MONGODB DRIVER] Warning: Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead.
(Use `node --trace-warnings ...` to show where the warning was created)
✔ exposes a default home page (44ms)
✔ exposes self-hosted explorer
PingController
1) invokes GET /ping
2 passing (395ms)
1 failing
1) PingController
invokes GET /ping:
Error: expected 200 "OK", got 404 "Not Found"
at Context.<anonymous> (src/__tests__/acceptance/ping.controller.acceptance.ts:18:53)
at processImmediate (internal/timers.js:461:21)
----
at Test._assertStatus (node_modules/supertest/lib/test.js:296:12)
at /src/node_modules/supertest/lib/test.js:80:15
at Test._assertFunction (node_modules/supertest/lib/test.js:311:11)
at Test.assert (node_modules/supertest/lib/test.js:201:21)
at localAssert (node_modules/supertest/lib/test.js:159:12)
at fn (node_modules/supertest/lib/test.js:156:5)
at Test.callback (node_modules/superagent/src/node/index.js:902:3)
at fn (node_modules/superagent/src/node/index.js:1130:18)
at IncomingMessage.<anonymous> (node_modules/superagent/src/node/parsers/json.js:19:7)
at endReadableNT (internal/streams/readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.