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

Crash when using with mocha #29

Open
fmsouza opened this issue Jun 3, 2015 · 3 comments
Open

Crash when using with mocha #29

fmsouza opened this issue Jun 3, 2015 · 3 comments

Comments

@fmsouza
Copy link

fmsouza commented Jun 3, 2015

While using as compiler to mocha it breaks when trying to load the file because it lacks an test/ in the path, like in:

Test routines path: /home/user/projects/project/test
Tmp path (to transpired test routines): /home/user/projects/project/tmp/tsreq/test/test

@fmsouza
Copy link
Author

fmsouza commented Jun 6, 2015

After some other tests, it actually doesn't lacks one test/ in the path. It seems to get confused while joining the string to generate the full path. I managed to hard code the missing segment. It worked in the first time, but then it started to add another equal segment and the path still broken.

@mendrik
Copy link

mendrik commented Nov 5, 2015

@fmsouza had the same issues, I switched to espower-typescript. ts-node was acting up with jsdom

@fmsouza
Copy link
Author

fmsouza commented Nov 7, 2015

@mendrik I stopped using this module long ago. At first, I was compiling the code to commonjs with gulp and running the tests with the js code. Then I discovered ts-node and used it's driver in mocha to run the tests directly. Worked very well.

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