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 @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead 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 @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead 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 747 packages, and audited 750 packages in 6s 102 packages are looking for funding run `npm fund` for details found 0 vulnerabilities > test > TS_NODE_COMPILER_OPTIONS='{"allowImportingTsExtensions": true}' mocha --require ts-node/register test/**/*.spec.ts (node:4168) 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) Authentication ✔ should allow a valid token to generate an internal jwt (48ms) ✔ should not allow an invalid token to generate an internal jwt Login ✔ should allow a valid user to login (153ms) ✔ should not allow an invalid user to login (118ms) - 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 (121ms) 10 passing (1s) 1 pending