src/shared/types.ts
Contains interfaces and types and enums that are not exported (not a module).
Types and interfaces are picked up by ts-mocha but not the enums.
Everything works fine when running server directly with ts-node.
aside: the path to ./src and /src are different because the relative path does not work on ts-mocha but /src does
using ts-node
ENV_FILE=development ts-node --inspect -r ts-node/register -r ./src/shared/types -r ./env -r tsconfig-paths/register src/start.ts
using ts-mochaNODE_ENV=development nyc ts-mocha -r ./env -r src/shared/types --paths ./tests/**/*.ts --exit"
src/shared/types.ts Contains interfaces and types and enums that are not exported (not a module). Types and interfaces are picked up by ts-mocha but not the enums. Everything works fine when running server directly with ts-node.
aside: the path to ./src and /src are different because the relative path does not work on ts-mocha but /src does