npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs npm warn deprecated npmlog@5.0.1: This package is no longer supported. npm warn deprecated npmlog@6.0.2: This package is no longer supported. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported. npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated gauge@3.0.2: This package is no longer supported. npm warn deprecated gauge@4.0.4: This package is no longer supported. npm warn deprecated superagent@8.1.2: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net added 717 packages, and audited 721 packages in 6s 103 packages are looking for funding run `npm fund` for details 9 vulnerabilities (4 low, 1 moderate, 4 high) To address all issues, run: npm audit fix Run `npm audit` for details. > test > TS_NODE_COMPILER_OPTIONS='{"allowImportingTsExtensions": true}' mocha --require ts-node/register test/**/*.spec.ts (node:4627) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`: --import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));' (Use `node --trace-warnings ...` to show where the warning was created) (node:4627) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated. (Use `node --trace-deprecation ...` to show where the warning was created) Authentication ✔ should allow a valid token to generate an internal jwt ✔ should not allow an invalid token to generate an internal jwt Login ✔ should allow a valid user to login (92ms) ✔ should not allow an invalid user to login (71ms) - should allow a logged in user to log out User GET /users ✔ should list all users if authorized ✔ should list only authorized users ✔ should not list users if not authorized POST /users ✔ should create a new user if authorized (120ms) ✔ should not create a new user if not authorized ✔ should not create a new user if username is already taken (118ms) 10 passing (994ms) 1 pending