balena-supervisor/test/lib
Christina Ying Wang 75bf2aa3b4 Improve NotFoundError handling
Use isNotFoundError which converts an error of the default type
`unknown` into NotFoundError if the error is an instance of NotFoundError.
Thrown errors are of type `unknown` by default so we should use methods
with type guards for better type narrowing.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-11-08 15:41:52 -08:00
..
dbus Setup environment for dbus tests 2022-10-17 11:24:15 -03:00
application-state-mock.ts Refactor test suite to use tsconfig paths 2022-08-18 13:05:10 -04:00
chai.ts Create test/unit and test/integration folders 2022-08-24 14:28:36 -04:00
db-helper.ts Update @balena/lint to 6.2.0 2022-09-19 16:41:28 +01:00
docker-helper.ts Migrate docker-util tests 2022-10-19 12:05:52 -03:00
errors.ts Update typed-error to 3.x 2020-08-19 10:07:54 +01:00
helpers.ts Add toggleable SUPERVISOR_HARDWARE_METRICS config 2021-05-13 13:59:07 +09:00
legacy-mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocha-hooks.ts Migrate API tests to unit/integration 2022-10-25 19:06:39 +00:00
mocked-balena-api.ts Consolidate API middlewares, move api-keys to device-api 2022-10-18 14:16:53 -07:00
mocked-device-api.ts Use v2 router directly instead of through application manager 2022-10-18 14:16:53 -07:00
mocked-dockerode.ts Improve NotFoundError handling 2022-11-08 15:41:52 -08:00
mocked-iptables.ts Migrate firewall tests to integration 2022-10-19 14:09:45 -03:00
mockerode.ts Update @balena/lint to 6.2.0 2022-09-19 16:41:28 +01:00
prepare.ts Update to typescript 4.8.2 2022-09-19 16:36:17 +01:00
wait-for-it.sh Run the built supervisor as part of docker-compose tests 2022-11-03 15:45:39 -03:00