Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENUMs are not picked up from script #44

Open
Streek opened this issue Aug 26, 2019 · 2 comments
Open

ENUMs are not picked up from script #44

Streek opened this issue Aug 26, 2019 · 2 comments

Comments

@Streek
Copy link

Streek commented Aug 26, 2019

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-mocha NODE_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

@piotrwitek
Copy link
Owner

Hey,
Which version of ts-node have you tested while testing directly?

@Streek
Copy link
Author

Streek commented Aug 27, 2019

v8.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants