typescript mocha Cannot use import statement outside a module

The solution for “typescript mocha Cannot use import statement outside a module” can be found here. The following code will assist you in solving the problem.

“test”: “env TS_NODE_PROJECT=\”tsconfig.testing.json\” mocha –require ts-node/register ‘src/test/**/*.ts'”,

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in