We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a mixed JavaScript/TypeScript project. For running, the JavaScript files are getting transpiled via babel-node.
babel-node
Now, I'm trying to set-up ts-mocha for running tests. However, I keep getting
ts-mocha
src/index.js:3 import 'whatever'; ^^^^^^ SyntaxError: Cannot use import statement outside a module
I guess, I would need to pass something like --compilers js:@babel/register to mocha. But how do I do that when using ts-mocha?
--compilers js:@babel/register
mocha
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a mixed JavaScript/TypeScript project. For running, the JavaScript files are getting transpiled via
babel-node
.Now, I'm trying to set-up
ts-mocha
for running tests. However, I keep gettingI guess, I would need to pass something like
--compilers js:@babel/register
tomocha
. But how do I do that when usingts-mocha
?The text was updated successfully, but these errors were encountered: